Click here to Skip to main content
12,622,675 members (27,941 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C# C#4.0
Hi,

How to add Vc++ dll to .Net project as reference?.
Posted 17-Dec-12 23:40pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

hi, Check this-
How to: Add or Remove References in Visual Studio[^]

hope it helped!
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

This will only work if it's a COM enabled DLL. For ordinary C/C++ libraries you need to use Platform Invoke[^].
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

Hi,

First, right-click on "References", and select "Add Reference".
Then, you can choose ".NET", "COM", "Solution" or "Browse".
  Permalink  
v2
Comments
nagalkumar 18-Dec-12 7:38am
   
My .dll file is not a .NET or com
ProgramFOX 18-Dec-12 7:39am
   
Then, you can browse for DLL files.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100