Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create C DLL using Visual Studio 2012

I've been doing all of my development using C# in Visual Studio, first 2010 and now 2012. I need to create a DLL using C language for the project I'm working on. Only when I do File | New Project, I can't find an option for creating a DLL using C.

How do you do this?

like image 397
Tony Vitabile Avatar asked Apr 19 '13 21:04

Tony Vitabile


People also ask

How do I open a DLL file in Visual Studio 2012?

Navigate to the folder containing the DLL file you want to open. Right-click the folder and click Open with Visual Studio. Expand the folder in the Solution Explorer window to the right. Double-click the DLL file you want to open.

How can I get DLL code in C#?

Use the "Assembly Explorer" to browse the DLL file. DLL files store information as "Nodes" and "Subnodes," which you can explore in a decompiler. By clicking on one node, you may see all of the subnodes contained within it. Double-click on the node to see the code contained within it.


1 Answers

It's under File / New / Project / Templates / Visual C++ / Win32 / Win32 Project. Follow the wizard, and you'll be offered "DLL" on the second page.

(This is with Visual Studio 2012 - some of the wording may differ in other versions.)

like image 103
RichieHindle Avatar answered Sep 21 '22 22:09

RichieHindle