Re: GUI inside dll
Yes, you might consider creating a "Regular DLL that uses MFC", note this is
not a "MFC Extension DLL".
Then, in your DLL, you'll create a dialog resource that shows whatever
dialog would be relevant for your application.
You'll create a dialog class to handle the events for the dialog.
You'll create a separate function or class that you will export from the
DLL.
You will display your dialog like this:
MainDLL.h
// Exported function
__declspec(dllexport) INT_PTR ShowMyDialog(void)
MainDLL.cpp
#include "MainDLL.h" // Contains your DLL exports
#include "MyMFCDialogClass.h" Contains MFC Dialog-based class
declaration.
INT_PTR ShowMyDialog(void)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState());
CMyDialogDlg dlgMyDialog;
INT_PTR iRC = dlgMyDialog.DoModal();
return iRC;
}
MyMFCDialogClass.h and MyMFCDialogClass.cpp contains the dialog class
implementation.
If you choose to use this method, then you can probably get more help with
it from the ms.public.vc.mfc newsgroup.
Leo.
"Firehole" <techsupport@fireholetech.com> wrote in message
news:7b6d6ca1-9757-421e-bb7e-0ec63389e437@u1g2000vbb.googlegroups.com...
I'm not sure that I'm posting to the right newsgroup, so please
forgive me if this is misplaced.
I'm a C++ programmer and a C# programmer, but I've never constructed
GUI applications for Windows using C++. I have a need to make FORTRAN
launch a Windows GUI and then deliver the information back. I can't
make FORTRAN talk to .Net, so I'm looking into building my app with VC+
+.
Can I embed a GUI inside a dll that I build with VC++ without using
anything .Net?
Please tell me a better place to post this question if this is not a
good place.
Thanks,
Firehole