what I want to achieve:
I have a big existing project which is non mfc.
I created a static library in which cdialogs are defined.
I already read, that it's possible to use this lib in a non mfc application but I don't know how.
I read a lot about mfc entrypoint and initialization, which happens in afxwinmain(), InitInstance, run(), etc. So, apparently, this stuff is never done in my application.
Can anyone suggest a method to use the cdialogs from my lib in the main application?
void InitMFC()
for example, which you then call from your non-MFC main project. If that's possible (doing the init from inside the static library), then your main project can initialize MFC without really knowing anything about it. – sashoalm