From: Olli A. <oa...@gm...> - 2007-08-10 21:01:38
|
On 8/11/07, Bertrand Coconnier <bco...@cl...> wrote: > Hi Olli, > > It is great that you build a binding for QuesoGLC. But if you want me to help > you, you will have to be more specific about your issue. > > Does the D compiler complains about the DLL ? > Or is it gcc ? Or is it Visual C++ ? > Two of them ? All of them ? > > What are they complaining about ? > > Did you succeed to run the executables provided with the binary archive ? > I'll try to explain. I'm loading the dll and getting the function pointers at runtime, so I can compile and link my applications just fine, but when running the application the call to GetProcAddress fails and GetLastError returns 127(ERROR_PROC_NOT_FOUND = The specified procedure could not be found.). So the dll is loaded just fine(I think), but the function pointer loading fails. I'm using a system which has bindings already for several different C libraries, including opengl, openal and sdl. I'm defining the functions to be loaded as 'extern Windows', that's D's way of saying to use the windows calling convention or some such. I did try to use 'extern C' too, but didn't have any effect. I could have bungled that though. I could try it again. Do you know that does it matter how and with what the dll was made with? I'm not a windows programmer and don't know much about building software on windows. Does that clarify things? O. |