Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / dbLoadDLL and dbCallDLL problem

Author
Message
organista 18
15
Years of Service
User Offline
Joined: 30th Dec 2008
Location:
Posted: 30th Dec 2008 11:59
Hello Everybody. I have some problem. When I'm using the dbLoadDLL and dbCallDLL function in the code, the compiler was returned to me an error.

Code:

Output from vc++:


Can You help me?

Physics is everything
Sharp Bullet
16
Years of Service
User Offline
Joined: 5th Feb 2008
Location: Pluto
Posted: 31st Dec 2008 02:15
The major problem is that you called "dbLoadDLL" and "dbCallDLL" with a wrong parameter type!

For example the function "dbLoadDLL" needs two parameters: one is a string <char*> and the other is an <int>, like this:

void dbLoadDLL( char* Dll_File, int Dll_ID );

The mistake is that you called it with an <unsigned long> which is defined as <DWORD> and an <int>, ...and the only problem is that you must to make the call without (DWORD)... like here:

dbLoadDLL( "darkphysics.dll", 1 );
dbCallDLL( 1, "start" );


I hope this was helpful, I think!
Cheers!

First say to yourself what you would be; and then do what you have to do.
jason p sage
17
Years of Service
User Offline
Joined: 10th Jun 2007
Location: Ellington, CT USA
Posted: 31st Dec 2008 18:43
Why are you even trying to load DarkPhysics that way?

If you have the headers - you just:



Login to post a reply

Server time is: 2024-09-30 13:25:07
Your offset time is: 2024-09-30 13:25:07