Creation of DLL task in visual studio 2005 is so simple. Follow the following
steps to make DLL in visual studio 2005.
Make new project via using menu or press “Ctrl+Shift+N”.
Select Win32 from Project types and select “Win32 Console Application” project
Give project name which you want, select location of project where you want to
save. Press OK.
Win32 Application Wizard will welcome you, press Next button.
You have to select DLL in application type and Press Finish.
Your project will create. Build your project and get Library File(.lib file) and Dynamic Link Library (.dll file).
Now, important thing related to exporting function. There is two ways of exporting function. One, using Module-Definition File (.def file) which is old way to export DLL (I like this way), second way, export function using Microsoft Specific extension of the C language via using __declspec(dllexport) keyword.
For learning these ways visit following sites.
(using def file)
-–| AimsLife™ |–