Hi
I made this simple test DLL called "DNP.dll" and put it in
C:\Program Files\Dark Basic Professional\Compiler\plugins-user\
but two things happen:
1) It can't find the .DLL unless I supply the full address, and
2) When I run my
#include "DNP.dll"
sync
StupidNumber = dnpSayNumber()
text 5,5,str$(StupidNumber)
sync
wait key
program, it says "Could not understand command on line 11".
Here is the code I used in the .DLL:
__declspec(dllexport) int dnpSayNumber( void )
{
return 42;
}
I'm using M$ Visual C++ 2005 Express edition. Here's the steps I follow to compile the DLL:
1) Make new project (Win32 Consol app)
2) Write some noob code
3) Go to Project->Properties
4) Maximize "Configuration Properties" node
5) Click "general" under "Configuration Properties"
6) Under "Project Defaults" I set "Configuration Type" from "Application (.exe)" to "Dynamic Library (.dll)"
7) Hit F7 to compile the project
8) Place .DLL file in the plugins-user folder
Do I need to use VC++6? That would stink.
Please and thanky
FunkyStickmen: Battle of the Races (1%)