I do not want to use the “graphics resources” to create the dialog!
What I have so far:
CDialog *dlgWin = new CDialog();
dlgWin->Create("hello"); // <-- but this Errors: "Debug Assertion failed!"
thx
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to create the dialog template in the resource editor, and provide it to the
CDialogconstructor.Here’s the documentation, they also explain how to dynamically create your dialog in memory, its not trivial and I’d advise against it. I’d advise against using MFC altogether.
The MSDN documentation is usually pretty well written, read it.