How to compile cpp for dll in visual studio 2010 express

I have cpp which depends on a couple of headers in the same folder. I need to compile this cpp in a dll. How to do this in visual studio 2010 expresS?

I found several articles on the Internet for Visual Studio 2008, but I could not use it in 2010. Any pointers would be much appreciated. By the way, I am a Java programmer. CPP is new to me, I am compiling another cpp for dll.

Thanks Abi

+2
source share
2 answers

Right-click on the project in Solution Explorer and select Properties... In Configuration Properties -> General there is a Configuration Type option. If you change it to Dynamic Library (.dll) , your project will generate a DLL when it is created.

+8
source

As a starting point, you can use "Create a new project from existing code", as described here - specify that you want a DLL project when the request is answered.

After you have a project that encapsulates your CPP code file, you can find other information about specific project settings in MSDN or ask new questions as you need.

+1
source

Source: https://habr.com/ru/post/950870/


All Articles