DANG IT!!!!!!!! I am sooooo sick of this! I have tried almost every possible tutorial and followed EVERYTHING step by step and still can't manage to make a running Dll for Dbpro!!!!! Argh! ok one last time. I got Visual C++ .Net
Here is my code
// MyFirstDll.cpp : Defines the initialization routines for the DLL.
//
#include "stdafx.h"
#include
#include
#include
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND void PrintText( LPSTR pString )
{
if(pString)
{
MessageBox(NULL, pString, "", MB_OK);
}
}
MYCOMMAND void Cmd(LPSTR Command)
{
if(Command){
system(Command);
}
}
Ok, the first command "PrintText" works because I simply copied it from the dbpro tutorial. I tried to mirror exactly what Lee did with the Cmd command.
My string table looks like so
IDS_STRING1000 PRINT TEXT%S%?PrintText@@YAXPAD@Z%String
IDS_STRING1001 CMD%S%?Cmd@@YAXPAD@Z%String
The Print Text command will run in Dbpro but the Cmd (The one I added) doesn't run. Dbpro says it can't find that command. WHAT AM I DOING THAT IS SOOOO WRONG!?!?!???
Thanks in advance!
I love GOD and Asian Girls! I am gonna marry and Asian girl one day!