Originally Posted by VictorN
1. Your project does NOT link bacause of the settings "Use MFC in a Static Library". So I had to chaged it to use in Shared DLL.
2. Set a break point in the begin of the
XMLNode XMLNode::openFileHelper(const char *lpszXML, LPCTSTR tag) method, then start debugger to debug your application - you will see that this method "silently" calls exit 255;
Note, that it is a very serious mistake to use exit operator in any MFC application! To exit (at this stage, when mainframe window already exists) you should PostMessage/SendMessage a WM_CLOSE message to your mainframe window!