This is what I put in the source file:
#define WIN32_LEAN_AND_MEAN
#include <DBPro.hpp>
using namespace DBPro;
extern "C"
{
EXPORT void mytest ( void )
{
Text(50,50,"Does this work?");
};
};
BOOL APIENTRY DllMain( HANDLE Module, DWORD Reason, LPVOID Reserved )
{
switch(Reason) {
case DLL_PROCESS_ATTACH:
ExitPrompt("attach","attach");
break;
case DLL_PROCESS_DETACH:
ExitPrompt("detach","detach");
break;
}
return TRUE;
}
and this is what I put in the .rc (ie. resource) file:
#include <windows.h>
STRINGTABLE
BEGIN
1 "mytest%0%hello"
END
Have changed it now so that there are no parameters, and nothing is returned. It just uses IanM's library to do a "Text" command on screen.
When I run the following code, it says that it couldn't understand the command:
text 0,0,""
mytest
suspend for key
I'm tired