I have a WIN32 Application CPP program (not MFC) making calls to various dialogs and other functions also in WIN32 (not MFC). Now in addition I want to call a function in a separate module that in turn uses the MFC Dialog class and DoModal. I can get successful compile but the Debug version always returns a AfxGetResourceHandle assertion error and never shows the dialog box. The release version shows the dialog box and then crashes.
I need to find some sample code that shows how to link MFC subprograms with WIN32 calling programs. I have looked at a lot seemingly promising examples but they are just not close. I have studied MSDN q173974 but this is for ATL and seems off. I have tried many of the suggestions using various AFX calls with no luck. I can send sample program easily. Thanks, Alan Lebeck