| Subject: How to create dll in Visual Studio 2008 in Visual C++ |
| Group: microsoft.public.vstudio.general |
| Date: 4/29/2008 10:59:05 PM |
| From: "Abhijit D. Babar" [Email Address Protection] |
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. |
| Back |
| Subject: Re: How to create dll in Visual Studio 2008 in Visual C++ |
| Group: microsoft.public.vstudio.general |
| Date: 5/1/2008 4:49:14 PM |
| From: "Kevin Frey" [Email Address Protection] |
"Abhijit D. Babar" <abhijitit94@gmail.com> wrote in message news:6adcd808-8439-4fd0-bde1-4863626283ed@w5g2000prd.googlegroups.com... > 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. Start with a Class Library, then use Project Manager to set the Configuration Type to Windows DLL. Building the DLL should generate an associated Import Library, and that Import Library is what you need to link with your Windows Forms application. (Unless you want the Windows Form application to load the DLL dynamically under programmatic control - like a plugin behaviour - in which case you'll need to use Win32 LoadLibrary calls and GetProcAddress calls, if I remember correctly.) |
| Back |