Sorry may be it is stupid question but ....
I've download latest GapiDraw 3.5 from gapidraw site
& GD.NET
but GapiDraw not contain gd301.dll's
how can i build some exaples from GD.NET in this situation ?
i want to test this before purchase GapiDraw
GD.net currently uses gd3.01. It includes the demo gd301.dll files so you can get started without downloading anything else.
GD3.5 is only in beta. As gd3.5 is distributed as link libs, not dll's, GD.net does not currently work with gd3.5.
In order to get .net working with gd3.5, I am going to have to create a wrapper library for gd, and compile a dll. This will need to wait until after I have finished my current project, and Johan gets back from his honeymoon.
Sean
Thanks
but GD.NET include gd301.dll for Windows & Arm
now i don't have any Arm device
can you send me gd301.dll for PocketPC 2003 or(and) 2002 Emulator ?
master@dmitryus.ru
Sean,
We'll include a DLL file in the final 3.50 release for .NET compatibility. I didn't know the .NET compiler couldn't link to statically linked lib files.
//Johan
I've been pondering this for my toy Gapi3D project as well. It's a DLL that expects to dynamically link to a GapiDraw DLL, and have a client app dynamically link against both. Therefore, I'm happy the DLL is coming back too.
The workaround I was considering was to add pure virtual classes ("interfaces" in COM, Java, and .NET parlance) such as IGapiSurface, and communicate between my DLL and a client app only using those wrappers. This would decouple my DLL completely from GapiDraw (although I wouldn't go so far as to design independent interfaces; I like GapiDraw!). Then I'd have a header file that provided inline implementations of those interfaces - basically, thin wrappers around CGapiSurface (etc). Client apps would then include the header and automagically get the interop mechanism. My DLL would no longer require any compile- or run-time linking to GapiDraw.
That won't directly work in the .NET world, though, since ideally Sean's wrappers have no native code which implies they must link dynamically. But if anyone else was going to do GapiDraw-compatible libraries, exposing such interfaces would be handy.
The dot net wrappers are in 2 parts.
Native functions that flatten out the object methods into c style methods (object itself as the first parameter, no name mangling). These get compiled into the gapidraw dll.
C# methods in the gapdrawNet.ll. These are simply PInvoke calls to the c dll which are placed into a similar inheratance structure.
.net cannot link to static libs, nor can it link to c++ methods. Hence the convoluted path to creating the wrapper.
Johan, I'll email you tonight re dlls