Creating a DLL project in VC.net?
okay is there any tutorials on how this can be done. i see many for VC6, but none for 7, or 7.1
also for creating dll in 6.0 it doesnt create a lib file. only a dll. how do i get it to create a lib as well?
Assuming that you want to create a regular, unmanaged DLL (not .NET), you should choose to make a Win32 Project in the New Project dialog. In the Win32 Application Wizard, go to the Application Settings section and choose DLL as the application type.
If you want to create a .lib with your DLL you have two options. You can add __declspec(dllexport) to the items you want to export into the library or you can add a .DEF file to your project with the symbols you wish to export. Keep in mind that the former option is a lot easier if you're working with C++ because of the C++ name mangling.
If you want to create a .lib with your DLL you have two options. You can add __declspec(dllexport) to the items you want to export into the library or you can add a .DEF file to your project with the symbols you wish to export. Keep in mind that the former option is a lot easier if you're working with C++ because of the C++ name mangling.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement