PDA

Click to See Complete Forum and Search --> : Humm Adding referances wont work.


cogman
Sep 21st, 2002, 06:17 PM
When I try to add a referance to a dll I download I get the error.

"A referance to 'z.dll' could not be added. This is not a valid assembly or com component. Only assemblies with extension 'dll' and COM components can be referenced. Please make sure that the file is accessible, and that it is a valid assembly or com component."

The dll was written in C++.

Cander
Sep 21st, 2002, 08:33 PM
then the dll is not a .net dll nor a com dll. you have to use it like api calls.

cogman
Sep 21st, 2002, 08:40 PM
humm, Well, That Sucks :). Anyway to get a function out of a DLL or EXE? Kindof hoping that this would do it. The DLL, or EXE, Does a lot of work with Winsock that I, quite frankly, dont know how to do.

PT Exorcist
Sep 21st, 2002, 08:43 PM
use System.Reflection to get the functions and classes and parameters..but i think it only works with .NET or COM dlls...

cogman
Sep 21st, 2002, 08:48 PM
You where right. Only works with .net/.com