I have existing codes. I have to create DLL file to reuse certain function. I really need help. Pls help if you can. Thanks
How to create a dll file using MFC(C++)..Need to covert the codes to dll. Pls help!?
You can make an MFC-based .DLL with the App Wizard. Select "File | New" from the menu. On the "Projects" tab, select "MFC AppWizard (.DLL)." Pick a name for your new project and click "OK." On the next screen, you will have the choice to create an MFC extension .DLL, a regular .DLL "using shared MFC .DLL" (i.e., a regular .DLL dynamically linked to MFC), or a regular .DLL statically linked to MFC. Pick the one you want and click "Finish."
App Wizard builds a .DLL which doesn't do anything. The new .DLL will compile, but since it doesn't export any classes or functions yet, it is still essentially useless. You now have two jobs: (1) add functionality to make your .DLL useful; and (2) modify your client application to use your .DLL.
For more refer the source sites given below
Reply:If you mean turning a GUI application (ie. one that has windows, dialog boxes and the like) into a DLL, you will have to choose to create a custom MFC Extension DLL.
Really, it is not very healthy (the extension DLL will depend on your current MFC DLL version, while the calling program may have a different one bound... it all really stinks). And please understand I am in love with MFC. Only Extension DLLs are some illformed abuse (conflicts, size, impracticity to be called from non-MFC code, etc).
tropical flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment