when i try to use the above function i always get error
firstly, i tried this way
char dll[] = "2dspritedll.dll";
dbDLLLoad ((DWORD)dll, 1);
char fun2[]="Math1";
int result2=dbCallDLL(1,(DWORD) fun2);
and i got this error
1>Main.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl dbCallDLL(int,unsigned long)" (?dbCallDLL@@YAKHK@Z) referenced in function "void __cdecl DarkGDK(void)" (?DarkGDK@@YAXXZ)
1>Debug\Getting Started.exe : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Program Files\The Game Creators\Dark GDK\Tutorials\Getting Started\Getting Started\Debug\BuildLog.htm"
1>Getting Started - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and then i tried this way
char dll[] = "2dspritedll.dll";
dbDLLLoad ((DWORD)dll, 1);
int result2=dbCallDLL(1,"Math1");
i got this
1>Main.cpp
1>c:\program files\the game creators\dark gdk\tutorials\getting started\getting started\main.cpp(51) : error C2665: 'dbCallDLL' : none of the 11 overloads could convert all the argument types
1> c:\program files\the game creators\dark gdk\include\darksdksystem.h(54): could be 'DWORD dbCallDLL(int,DWORD)'
1> while trying to match the argument list '(int, const char [6])'
1>Build log was saved at "file://c:\Program Files\The Game Creators\Dark GDK\Tutorials\Getting Started\Getting Started\Debug\BuildLog.htm"
1>Getting Started - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
so any info?
or can we use dbcalldll in dark gdk?
thanks