Hi All,

This is my first post on these forums and despite working as a software engineer, I have a background in Embedded Programming so Application development is extremely new to me. I would like to know if I am approaching a project of mine properly.

My project is to create a GUI dialog that is initialized from a function call in C. The application initializing this window was developed many years ago and is compiled in C, however, I can implement my window in any way. I decided to utilize MFC to design my GUI which is essentially a CAD model creator. The host application needs to be able to open multiple instances of this window and upon saving or closing the window, have Objects returned to the code from my dialogs to be processed.

Thus far, I created a MFC application that spawns various dialogs for object creation. I am having trouble creating wrapper functions to call the InitInstance() from a testbed (a simple console application). Also I have been reading about the MFC framework and have noticed that a global CwinApp object is created, which is unacceptable in terms of this application. Also, it appears you are limited to one instance of the app object.

However as a test, during the construction of the Object, I have a debug assertion error at appcore.cpp at the line:

ASSERT(m_pszAppName != NULL);

and am unable to spawn a window.

But I suppose the most glaring question is, should I go straight to the winApi to design this GUI or am I on the right track? I'd hate to start from scratch again.

Thanks in advance