G
Guest
Hi,
I have posted this on 8/19/2004 but was unclear in my intention. So here it
comes again:
how can I avoid the failing assert in the following scenario?
- create a managed C++ Windows Forms Application,
- in the designer view, drag a button on the form
- add the following code to the Click event for that button:
CFileDialog dlg(TRUE);
dlg.DoModal();
- #include <afxdlgs.h> in the Header of that from
- build and run the application (in debug mode)
- when you click the button the following assert in AfxGetResourceHandle
fails:
ASSERT(afxCurrentResourceHandle != NULL)
Note that in the project settings use MFC as shared library is turned on.
Thanks in advance
Arne
I have posted this on 8/19/2004 but was unclear in my intention. So here it
comes again:
how can I avoid the failing assert in the following scenario?
- create a managed C++ Windows Forms Application,
- in the designer view, drag a button on the form
- add the following code to the Click event for that button:
CFileDialog dlg(TRUE);
dlg.DoModal();
- #include <afxdlgs.h> in the Header of that from
- build and run the application (in debug mode)
- when you click the button the following assert in AfxGetResourceHandle
fails:
ASSERT(afxCurrentResourceHandle != NULL)
Note that in the project settings use MFC as shared library is turned on.
Thanks in advance
Arne