Hello all,
ive created a class that has a dialog box. i first tested it as an exe, then i moved it to a dll, tested the dll and it works fine from there. then i decided that i didnt want it in a dll but want to make it a library for static linking. so i started shifting it to a library compile and testing.
i have an exe that tries to use the library (everything compiles fine). the dialog class is instantiated...but when it comes down to DoModal, nothing shows up. im still new to MSVC and dialog boxes. could anyone give me an idea as to what im missing?
any help would be greatly appreciated.
txjump
ive created a class that has a dialog box. i first tested it as an exe, then i moved it to a dll, tested the dll and it works fine from there. then i decided that i didnt want it in a dll but want to make it a library for static linking. so i started shifting it to a library compile and testing.
i have an exe that tries to use the library (everything compiles fine). the dialog class is instantiated...but when it comes down to DoModal, nothing shows up. im still new to MSVC and dialog boxes. could anyone give me an idea as to what im missing?
Code:
msgBox lmg;
lmg.showAfxMsgBox(); //just a test function to make
//sure the class is working
int retVal = lmg.DoModal();
char temp[30];
sprintf(temp, "rcvd: %d", retVal);
AfxMessageBox(temp, MB_OK, 0);
any help would be greatly appreciated.
txjump