I have run into a real stone wall in trying to construct a modeless
dialog box in MSVC + MFC. First I constructed a class derived from
CDialog called Modeless. In that class I have a member pointer:
CDialog * m_pModelessDialog;
Then in the source file:
Modeless abc;
abc.m_pModelessDialog = new Modeless;
if (!abc.m_pModelessDialog->Create(IDD_DIALOG1) {
AfxMessageBox("Dialog creation failed",MB_OK);
exit(1);
}
I keep getting a syntax error: "cannot convert int to * char".
"Create()" (according to the documentation) can take either type LPSZ
or int. Can you give me a pointer in the proper direction?
* KWQ/2 1.2i *
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)
|