Hi,
Sorry if this has been answered hundres of times... I have found a couple of posts regarding DLL's but they havnt quite helped.. My question is how do I make a Dialog Box pop up with a Title and a String.. I am trying to use a command in DBPro like:
Dialog "Body","Title"
But I am totally getting confused. I cant remember anything about C++ now which makes things a lot worse. The following code works find making a dialog box with just the body text.(not sure if the code snippet thing will work)
#include "stdafx.h"
BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
return TRUE;
}
#define MYCOMMAND __declspec ( dllexport )
MYCOMMAND void DBox( LPSTR pString )
{
if(pString)
{
MessageBox(NULL, pString, "", MB_OK);
}
}
This works fine.. when used it will spit up a box with the text string you enter... However I want to include a title.. and I am to dumb to figure out how it works,.. if I add (LPSTR pStringT) for a title string variable and use it instead of the ""'s shouldnt that just work?
if that does work,. how do I format the String table ?
DIALOG%S%?DBox@@YAXPAD@Z%String