Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert Visual C++ files to DLL files 1

Status
Not open for further replies.

landra

Programmer
Jun 14, 2001
1
CA
I have writen a program in visual C++ and would like to convert all of the files to DLL files but I am not sure how to do this. Is there a program that I can go into that will do the conversion for me or do I have to make additions to my C++ code? There are about 20 .cpp and .h files in the program.
Thanks,

Landra
 
The cpp files and h are the same for both, dll and exe. Maybe for dll's you should have also a def file. The functions main/WinMain must be eliminated. You can put some symbol before, for example WinMain will become _WinMain or WinMain2. declare them as declspec(dllexport). If you use MFC, you should change nothing. The main functions for dll can be DllMain or LibMain, but is not a requirement. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top