PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Gapidraw for dot net

I have created a wrapper dll and C# classes allowing use in C#, VB.net.

I am looking to release it as open source under whatever license is appropriate. I just wanted to check that that doesn't conflict with any gapidraw licences.

I am also looking for beta testers. You would need visual studio 2003 beta (or possibly vs.net with smart device extensions). If you are interested, let me know.

Regards

Sean
Mr X · 27 Feb 2003, 10:43 UTC — Details
Damn thing forgot my details. Email address is sean@intuitex.com

Sean
Hi Sean,

Impressive work! Please let me know if you encounter any difficulties that can be solved by modifying the GapiDraw interfaces (which can be done).

No, it does not infringe on the GapiDraw license. Let me know if you need any web hosting (xxx.gapidraw.com or www.gapidraw.com/yyy).
Mr X · 27 Feb 2003, 12:02 UTC — Interfaces
The impressive work is in creating the library in the first place, I'm just wrapping it.

My dll wrapper consts of a series of methods such as


CGapiSurface* __stdcall CGapiSurface_Create()
{
return new CGapiSurface();
}

HRESULT __stdcall CGapiSurface_Destroy(CGapiSurface* pSurface)
{
delete pSurface;

return S_OK;
}

HRESULT __stdcall CGapiSurface_CreateSurfaceFromFile(CGapiSurface* pSurface, const TCHAR* pImageFile)
{
return pSurface->CreateSurface(pImageFile);
}

HRESULT __stdcall CGapiSurface_CreateSurfaceFromMem(CGapiSurface* pSurface, BYTE* pImageFileMem, DWORD dwImageFileSize)
{
return pSurface->CreateSurface(pImageFileMem, dwImageFileSize);
}

If you could add these interfaces to the library, that would eliminate the need for a separate dll. I can provide a .cpp and .h file that you could compile straight in. However I haven't played with the 1.10 beta, just worked off the 1.04 release so some changes may be needed.

I will stick the beta files up on my website this weekend and let people have a play.

Thanks
Sure, I'll add that. It was actually on my to-do list for 1.10 anyways.. :)