Code:
int __stdcall WinMain(DWORD hInst,DWORD hPrev,char *CmdLine,int CmdShow)
{
int WinMainReturnValue = 0;
VBCommand = CmdLine;
initgarbage();
initvbtypes();
memset(&TempVarsCHAR,0,sizeof(TempVarsCHAR));
// ---------------------------
// Start of user code
// ---------------------------
MsgBox("Calculation inside arrays: ");
Main_return:;
// ---------------------------
// End of user code
// ---------------------------
if (GarbageArray[GarbagePos]) free((void *)GarbageArray[GarbagePos]);
free((void *) App.Path);
free((void *) App.EXEName);
return(WinMainReturnValue);
}
i also have a whole bunch of classes and globals, one fucntion in which defines msgbox. i dont know how to set the whole thing up is the problem.
i can post the dwp, cpp and h files if somebody could get this working.
for example in one of the globals i have ,
Code:
// --------------------------- MsgBox() function
char *HelpFileStr;
void MsgBoxCallback(LPHELPINFO);
void MsgBoxCallback(LPHELPINFO lpHelpInfo)
{
WinHelp(0,HelpFileStr,1,lpHelpInfo->dwContextId);
}
DWORD MsgBox(char *,DWORD = VbMsgBoxStyle_vbOKOnly,char * = App.Title ,char * = "",DWORD = 0);
DWORD MsgBox(char *Prompt,DWORD Buttons,char *Title,char *HelpFile,DWORD Context)
{
MSGBOXPARAMS MsgBoxDat;
memset(&MsgBoxDat,0,sizeof(MsgBoxDat));
MsgBoxDat.cbSize=sizeof(MsgBoxDat);
MsgBoxDat.hInstance=App.hInstance;
MsgBoxDat.lpszText=Mid(Prompt,1,1024);
MsgBoxDat.lpszCaption=Title;
MsgBoxDat.dwStyle=Buttons;
if((Buttons&VbMsgBoxStyle_vbSystemModal)==0) MsgBoxDat.dwStyle=MsgBoxDat.dwStyle|8192;
MsgBoxDat.dwContextHelpId=Context;
MsgBoxDat.lpfnMsgBoxCallback=(DWORD) &MsgBoxCallback;
MsgBoxDat.dwLanguageId=0;
HelpFileStr=HelpFile;
return(MessageBoxIndirect(&MsgBoxDat));
}
i am having a problem with linking everything together.