Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 19th, 2004, 07:50 PM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error adding DLL

Hey, I was wondering if anyone could help me. I'm relatively new to application development, but im trying.
I've created a DLL in Embbeded Visual C++, and im trying to add it to a VS.NET project. The entire application is to be run on a Windows CE
device.
But I keep getting the following error,
" A reference to 'c:\S_App.dll' could not be added. This is not a .NET assembly."

What am I doing wrong???
Any help would be appreciated


 
Old February 19th, 2004, 09:14 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Is it a VC++6 DLL?
 
Old February 20th, 2004, 08:35 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Unless it's a .NET assembly, you can't add it as a .NET reference. I imagine you are hitting the "Browse..." button in the "Add Reference" dialog. Note that there are also three tabs in that dialog: .NET, COM, Project. You probably need to switch to the COM dialog and make sure your DLL is registered so you can locate the COM class id in the list of available COM references. Then when you add the reference into a .NET project, Visual Studio will generate a COM interop assembly (in .NET) that talks to the COM dll.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old June 12th, 2008, 12:15 PM
Registered User
 
Join Date: Jun 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi me too facing the same issue. It was an VC++6.0 dll which i am trying add to an application in VC++ in VS 2003.

It throws me error "Add reference : Error Adding reference to the project".

Can any one help me on this at the earliest.



Regards,
Suresh S.





Similar Threads
Thread Thread Starter Forum Replies Last Post
dll Error Norberto_Caraballo VB Components 4 August 9th, 2006 12:38 PM
Adding DLL MMazhar Visual C++ 0 December 21st, 2005 03:22 PM
Error in mscorlib.dll soccers_guy10 Pro VB.NET 2002/2003 0 May 9th, 2005 02:46 AM
CLSID error in DLL Mcanic2k Beginning VB 6 2 March 11th, 2004 05:43 AM
Error capture from DLL c3r3al_kill3r Classic ASP Components 0 July 1st, 2003 05:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.