I want to create a dll that will contain a dialog box class and export it for use in another application. I thought I would start simple and build on it. So I created a MFC AppWizard(dll) and setup a plain looking dialog box. I then added a "AFX_EXT_CLASS" to the app class that was created by the wizard like so:
AFX_EXT_CLASS class CHTTPpostApp : public CWinApp
this gives compile warnings:
warning C4091: '__declspec(dllimport ) ' : ignored on left of 'class CHTTPpostApp' when no variable is declared
so I tried:
class AFX_EXT_CLASS CHTTPpostApp : public CWinApp
which gave all kinds of warnings and error msgs
Can someone tell me how to export a dialog box and its functionality to an exe? Maybe show me the changes that you need to make to an appwizard generated dll so that I have a simple starting point.