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 fails

Author
Message
Fernando Castro
18
Years of Service
User Offline
Joined: 21st Dec 2005
Location: Mexico
Posted: 15th Jan 2006 19:15
Hi, i trying to load a DLL using the DarkSDK ease system, but fails... here is the simple code i use...

The error is C2664: cannot convert parameter 1 from 'char[12]' to 'DWORD'

I'm using MSVC++.NET
Fernando Castro
18
Years of Service
User Offline
Joined: 21st Dec 2005
Location: Mexico
Posted: 15th Jan 2006 19:16
Sorry i forget put the code;

dbLoadDLL ("ngcollision", 1);
Fernando Castro
18
Years of Service
User Offline
Joined: 21st Dec 2005
Location: Mexico
Posted: 15th Jan 2006 19:23 Edited at: 15th Jan 2006 19:33
I found the solution myself;

I must put (DWORD) before like this;

Smithy
19
Years of Service
User Offline
Joined: 8th Dec 2004
Location: Switzerland
Posted: 16th Jan 2006 10:12
Yes you're right, this is called "casting".

Old style casting (C-style):
(TargetType)variable

New style casting (C++):
static_cast< TargetType>( variable)

//Awards: Best DM at NeverwinterConventionIII (NWCon3)
//Sys: Pentium IV 3200E/Prescott;800Mhz FSB;HT;WinXPPro;ATIR9700PRO;1024MB RAM(2x512MB"DualChanneled";VC++7.net;Delphi6;ADSL512;

Login to post a reply

Server time is: 2024-11-19 04:31:00
Your offset time is: 2024-11-19 04:31:00