Have you did a debugging in your code ? When exactly take happen that error ?
Trying to include an MFC dialog from a library in an MFC Application but application crashes.
AlexS13
41
Reputation points
Hello. I'm trying to include a dialog class from an MFC library to an MFC application. When I include them like this:
#include "CTestDlg.h"
#include "CTestDlg.cpp"
it's working.
When I include them from properties :
- C/C++ Additional Include Directories : "Path"
- Linker/General/Additional Library Directories) : ".obj path"
- Linker/Input/AdditionalDependencies : CTestDlg.obj
MFC Application(is built from a wizard API, it's not default MFC App. If I create a default MFC app it's working) thrown an exception.
Any idea what could be causing the problem? Thanks.
Developer technologies | C++
3,977 questions