Re: How to create dll in Visual Studio 2008 in Visual C++

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

Look in the Visual Studio help file for the topic under C++ called

"Creating Reusable Code (C++)"

It explains how to create a NON-MFC, unmanaged DLL. You can also create a managed DLL (think .NET) using the "class library" option.

Why anyone would want to mix and match managed Windows forms code with an unmanaged DLL is beyond me, but that's what you asked for. Bear in mind there's also a C# specific option for DLLs.

Abhijit D. Babar wrote:
Hello,
I have insatlled Visual Studio 2008. I have to create DLL in Project
type Visual C++.
Which Template i have to select to reate dll, MFC DLL or Class
Library?.

I have to call or import this dll in Windows Forms Application. How
can i do this. Please give details procedure to do this.


--
Gerry Hickman (London UK)
.



Relevant Pages

  • Deployment Status
    ... I have multiple customer webspaces on a remote server. ... If Visual Studio ... Version 1.1 would set the name of the DLL to the name of the NameSpace. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Webpart unable to register as safecontrol
    ... Here are the steps to registering a webpart as safe for all of you who ... \SDK\v1.1\Bin directory of your Visual Studio Installation. ... Make the AssemblyKeyFile look like [assembly: ... This is the location of your dll. ...
    (microsoft.public.sharepoint.portalserver.development)
  • CoCreateObject of C# ComVisible object from C++ Crashes
    ... I have three DLL projects, all compiled from Visual Studio 2003 ... setup to get to the point where I try to call CoCreateInstance takes ... the CoCreateInstance call causes Visual Studio to crash ...
    (microsoft.public.dotnet.framework.interop)
  • dll copy question
    ... I have a program that references a DLL. ... Microsoft Visual Studio Tools for Office 77633-163-9000041-41865 ... Microsoft SQL Server Analysis Services Designer ... Microsoft SQL Server Integration Services Designer ...
    (microsoft.public.vsnet.general)
  • Re: Reference DLL with CopyLocal = False problem ....
    ... CopyLocal is just a visual studio directive. ... on a server and I made a Reference to this DLL. ... I check my Reference paths in Project properties - there is a valid path ...
    (microsoft.public.dotnet.general)