Create dll example in VisualStudio 2015 - hpaluch/hpaluch.github.io GitHub Wiki
Warning: It is work in progress
Here is a step by step tutorial - how to create and use DLL in Visual Studio 2015
Requirements
- having Visual Studio 2015 Installed - you can get Visual Studio Community from free.
- do not forget to install Visual C/C++ components of Visaul Studio
Tutorial
Run your Visual Studio 2015 (CE) - for example from Menu or Start...
Creating Solution and ExampleApp project
In this part we will create solution DllExample2015 that would contain these projects:
- ExampleApp
- ExampleDll
Do this in Visual Studio:
- create new Solution clicking on menu File -> New -> Project... (yes - solution is created from project menu :-)
- Select Templates -> Visual C++ -> Win32
- Fill in:
- Name:
ExampleApp
(it is project name) - Solution name:
DllExample2015
- Name:
- leave checked create directory for solution
- click on OK
Win32 Application Wizard appears:
- click Next
- on Application Settings wizard page:
- select Console Application
- click on Finish
Creating ExampleDll project
- Click on Solution Explorer tab (on right side)
- right-click on DllExample2015 Solution
- Choose Add -> New Project ...
- Select Installed -> Visual C/C++ -> Win32 and Win32 Console Item in list
- fill in:
Name:
ExampleDll
- click on OK
When Win32 Application Wizard appears then:
- click Next
- select Application Type:
DLL
- click Finish
TODO:
- change header, change cpp
- add Reference
- add Include path...
- add include to App
- add breakpoint
- debug