I am trying include c++ library (DLL) in my c# project but every time I do that I get following error message in VS2008, any suggestions?
EDIT: It’s a C++ MFC DLL
--------------------------- Microsoft Visual Studio --------------------------- A reference to 'C:\Users\cholachaguddapv\Desktop\imaging.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
If it is a ‘normal’ DLL (not COM, not managed C++), you cannot add a reference like this. You have to add p/invoke signatures (external static method definitions) for the exports you want to call in your DLL.
Have a look at the DllImport attribute in the online help.