Harry

Harry

  • NA
  • 4
  • 0

compiling DLL in Visual Studio

Jan 9 2009 7:11 AM
Hi,

I found this tutorial about MFC DLLs here: http://www.dotnetheaven.com/Uploadfile/mahesh/DLLBasicsPart105192005020909AM/DLLBasicsPart1.aspx?ArticleID=0761024a-f5f8-43f1-9e7a-e1da67a862e1

I'm trying to find out how to make a DLL but not for MFC or Win32 API in Visual Studio. This DLL will just contain C++ code I wrote myself, no other GUI API like MFC or Win32 API will be used.

Can you tell me how to do this step-by-step in Visual Studio 2005 or Visual Studio 2008? I would like to know what project type to choose in Visual Studio, what settings I have to apply in the properties dialog of that project, what code changes (if any) to my existing code I have to make to get a DLL after compiling, how to export functions to that DLL, etc etc...

It would be great if somebody could tell me step by step how to do this because I have never compiled a DLL file myself.
(please remember I don't want to make a MFC or Win32 API DLL but just C++ code that doesn't use any GUI API from Windows must be compiled into a DLL)

best regards,
Harry

Answers (2)