Reputation: 81
I am just getting started with visual studio and have begun a C# project. I was wondering how I can link to a specific header file/library using visual studio or whether that is possible or not.
What I want is to be able to include a file by browsing for it and to have it appear in the using headers automatically. Any ideas?
Upvotes: 2
Views: 5162
Reputation: 672
In C# you don't have header files. If you are trying to use some C++ code in your application, you need to create a wrapper dll for it. More on this here
If you want to use a library (dll file) in your project you need to reference it to your project.
Here you can add a reference to a project in the same solution, or select browse on the left side to find the concrete dll you want to use.
Upvotes: 5