The Artima Developer Community
Sponsored Link

C# Answers Forum
Add DLL in C#.net

1 reply on 1 page. Most recent reply: Feb 5, 2010 7:48 AM by As Eclipse

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
pinky shah

Posts: 1
Nickname: pinky275
Registered: Feb, 2009

Add DLL in C#.net Posted: Feb 6, 2009 9:18 PM
Reply to this message Reply
Advertisement
Hi friends,
I have a DLL which I have created in VC++ project. Now I want to use that DLL in my C#.net project. What exactly I have done is, I have added project of VC++ for which I have created the DLL, in my C#.net project. After that I have tried to add the reference of that DLL by browsing it. But I am getting error that,"A reference to the file could not be added.Please make sure that the file is accessible, and that it is a valid assembly or COM component. "


Overview:
I have one C#.net Project
one VC++ Project
I want to use my VC++ project in C#.net project.
For that I have created DLL of VC++ project and now I
want to use that DLL in my C#.net project.


As Eclipse

Posts: 1
Nickname: aseclipse
Registered: Feb, 2010

Re: Add DLL in C#.net Posted: Feb 5, 2010 7:48 AM
Reply to this message Reply
If your dll which created by c++ is not management code, you mush use P/Invoke to call the dll. You can check it in MSDN.

Flat View: This topic has 1 reply on 1 page
Topic: ACL for removable drives Previous Topic   Next Topic Topic: insert statement error

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use