Here is the simple steps to DLL project in Visual Studio
- Open Visual Studio
- Click File->New Project, and select Empty project
- Write Name and select location
- Click ok
![JNI: Creating new Dll project JNI: Creating new Dll project](https://studentprojects.in/wp-content/uploads/2011/07/CreateNewDllProject.png)
- Go to Project->Properties
- On the left side, select general in configuration properties
- Select Dynamic Library(.dll) as configuration Type
![Dll Project Configuration Dll Project Configuration](https://studentprojects.in/wp-content/uploads/2011/07/DllProjectConfiguration.png)
- Next click C/C++
- Add jdk include and win32 path in Additional Include Directories
- If you have installed jdk in c program files then the path is
- C:\Program Files\Java\jdk1.6.0_18\include; C:\Program Files\Java\jdk1.6.0_18\include\win32
- Click OK button.
![Dll Project Add Include Directories Dll Project Add Include Directories](https://studentprojects.in/wp-content/uploads/2011/07/DllProjectAddIncludeDirectories.png)
- Now the configuration of the project is done. Next step is to add files to the project.
- As shown in below image, right click on the “Header Files” folder and select Add, Existing Item
- Select Header files and add to the project.
![DLL adding files DLL adding files](https://studentprojects.in/wp-content/uploads/2011/07/DLL-adding-files.png)
Finally solution explorer will look like:
![Solution Explorer Solution Explorer after adding files](https://studentprojects.in/wp-content/uploads/2011/07/SolutionExplorer.png)
- Build Solution: Go to Build->Build Solution
- Solve the errors if any found in output window.
- Once the build is successful then the generated dll will be in the output directory.
Thanks Ranjith for the steps.
Good one:)
How can i do visual studio setup for Microsoft Visual C++ 2010 Express edition.
thank you so much ! Ranjith