Click here to Skip to main content
11,637,415 members (66,915 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C#4.0
Hi,

How to add Vc++ dll to .Net project as reference?.
Posted 17-Dec-12 22: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 at 18-Dec-12 7:38am
   
My .dll file is not a .NET or com
ProgramFOX at 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
0 Sergey Alexandrovich Kryukov 344
1 OriginalGriff 295
2 stibee 288
3 jyo.net 270
4 himanshu agarwal 209
0 OriginalGriff 9,031
1 Sergey Alexandrovich Kryukov 8,763
2 Mika Wendelius 6,999
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320


Advertise | Privacy | Mobile
Web01 | 2.8.150728.1 | Last Updated 18 Dec 2012
Copyright © CodeProject, 1999-2015
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