Hello,
I'm writing a simple HelloWorld like windows app that uses a dll. I'm just trying to use the DLL from within my program. I've read previous answers to similar questions and I've tried to add a reference to the DLL.
The dll does not show up in the .NET or COM tab, so I found it in the projects tab. (Project, Add Reference, Project tab, Browse, find the .dll file, ok)
I get this error message:
> A reference to D:\users\tom\...\ICInterfa
ceDll.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.
This is on Windows XP Pro 2002 SP2, Visual Studio 2003.
The DLL should be a valid DLL since I compiled it using Visual Studio 2003, right?
I have the source code to the DLL, so recompiling with different options might be all that's necessary.
The purpose of the ICInterfaceDLL.dll DLL is to let us use a 3rd party DLL (called InterCom, hence ICInterfaceDll.dll), if that clue helps. Should it be compiled using VS 6.0 instead of 2003?
The basic questions is: What do I have to do to use this DLL from within my app?
Start Free Trial