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() Problem ...

Author
Message
Didou69
21
Years of Service
User Offline
Joined: 24th Oct 2003
Location: France
Posted: 15th Feb 2005 06:59
When I use dbLoadDLL() fonction I get this error



but I use fonction like this :



Somebody know why function doesn't work ???
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 15th Feb 2005 07:04 Edited at: 15th Feb 2005 07:09
You need something like :

dbLoadDLL((DWORD) "file.dll",1);

dbLoadDLL is pretty useless in C (along with dbSin, cos and whatnot...).

It would be best to use LoadLibrary/FreeLibrary and jump to the routine by getting the function address using GetProcAddress.

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.
Didou69
21
Years of Service
User Offline
Joined: 24th Oct 2003
Location: France
Posted: 15th Feb 2005 07:22
Yes I try cast method but it make a serious error but I'll try again..
Didou69
21
Years of Service
User Offline
Joined: 24th Oct 2003
Location: France
Posted: 15th Feb 2005 07:25 Edited at: 15th Feb 2005 07:25
Ok It working now !!!
I tested the same thing a few moments ago ... Really strange !!!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 16th Feb 2005 20:42
The problem with the windows commands is that you need to learn about function pointers, but it is the better way to do it.

Here is what you would do with DBPro:


and here is the equivalent code in C/C++:


It's a little more involved, but a lot more flexible and type-safe than the DBPro method.

*** Coming soon - Network Plug-in - Check my site for info ***
For free Plug-ins and source code http://www.matrix1.demon.co.uk
OSX Using Happy Dude
21
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 16th Feb 2005 22:16
Which is why I recommend it...

Visit http://homepages.nildram.co.uk/~nickk/
Questions are a burden to others, answers a prison for oneself.

Login to post a reply

Server time is: 2024-11-18 23:42:04
Your offset time is: 2024-11-18 23:42:04