TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JERRY COFFIN
from: NEIL HELLER
date: 1997-07-10 20:29:00
subject: Modeless dialog boxes

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.