Advertisement

05.29.2007 at 01:46PM PDT, ID: 22600656
[x]
Attachment Details

Cannot add reference to DLL in Visual Studio 2003

Asked by TomEberhard in Microsoft Visual C#.Net, Visual Studio .NET 2003, Microsoft Programming

Tags: reference, dll, visual, studio, add

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\...\ICInterfaceDll.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
[+][-]05.29.2007 at 02:00PM PDT, ID: 19175481

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 07:22AM PDT, ID: 19180232

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 10:10AM PDT, ID: 19181677

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.30.2007 at 12:05PM PDT, ID: 19182648

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.31.2007 at 08:31AM PDT, ID: 19188979

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Visual C#.Net, Visual Studio .NET 2003, Microsoft Programming
Tags: reference, dll, visual, studio, add
Sign Up Now!
Solution Provided By: angus_young_acdc
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.31.2007 at 10:05AM PDT, ID: 19189838

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32