0

I have a previously compiled dll file. I've lost the source code unfortunately. But I know the functions, header names and namespaces on it.

Is it possible to add this dll to a new project in VS? If so what code should I use? (not sure how to use dllimport in this case)

Both the DLL and the new project are on C++ .net 2.0. I'm using VS2008

Glitch
  • 595
  • 6
  • 18

1 Answers1

1

You should just have to add a reference to your project that points to the dll. Right click the project-> go down to add -> reference. Or Expand the Project and right click the references node and click add. enter image description here

This opens a dialog with 4 items to the left. click on browse then click the browse button at the bottom. Find your dll and click add and then Ok to close the dialog. enter image description here After that use it as you would any other dll.

user2258403
  • 766
  • 6
  • 8
  • Thanks but I need to know how to do it in VS2008. The interface looks quite different. – Glitch Sep 11 '15 at 04:53
  • 1
    This is 2013 with the dark theme applied but I've used 2005 all way to 2013 and the steps have not changed much if at all. – user2258403 Oct 03 '15 at 21:00
  • thanks. i managed to get it working in 2008 as well. I forgot to mark this as an answer. I'll do it now. – Glitch Oct 04 '15 at 19:37