473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

.NET 7.0 Add COM component to Project?

Hello,
I checked the Help and it says you Add/Remove COM
components and Type Libraries to Projects by selecting the
menu item Project-->Add References. However my Project
does not have the Add References Menu item.

Any information will be appreciated.
Patty
Jul 19 '05 #1
4 2494
Hi Patty

What version and edition of VS are you using? Open the Solution Explorer (View->Solution Explorer in the main menu) and make sure that your project node
is selected before opening the Project menu.

Another way to add COM references is to right click on the project node in the solution explorer and select "Add Reference...". Once the dialog shows, make
sure that you click on the COM tab.

Thanks
Gabriel

--------------------
Content-Class: urn:content-classes:message
From: "Patty Lorge" <pl****@tririga.com>
Sender: "Patty Lorge" <pl****@tririga.com>
Subject: .NET 7.0 Add COM component to Project?
Date: Tue, 22 Jul 2003 09:44:01 -0700
Lines: 8
Message-ID: <0c****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNQcHRuH3CznLtoR3uH5nX9UUnfeA==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102038
NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
X-Tomcat-NG: microsoft.public.dotnet.general

Hello,
I checked the Help and it says you Add/Remove COM
components and Type Libraries to Projects by selecting the
menu item Project-->Add References. However my Project
does not have the Add References Menu item.

Any information will be appreciated.
Patty


--
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Jul 19 '05 #2
Hi Gabriel,
I am using
MDE 2002 Version 7.0.9466
..NET Framework 1.0
This is a Visual C++ program that I upgraded from VS 6.0
where it had no problem adding a COM Reference.

When I click the Project Menu or right click on the
Project from the Solution Explorer, my menu selection does
not include Add Reference. My choices are:

Add Class...
Add Resource..
Add New Item...
Add Existing Item...
New Folder
Unload Project
Add Web Reference...
Set as StartUp Project
Properties

That's the entire list.
Thanks for the help,
Patty

-----Original Message-----
Hi Patty

What version and edition of VS are you using? Open the Solution Explorer (View->Solution Explorer in the main
menu) and make sure that your project nodeis selected before opening the Project menu.

Another way to add COM references is to right click on the project node in the solution explorer and select "Add
Reference...". Once the dialog shows, makesure that you click on the COM tab.

Thanks
Gabriel

--------------------
Content-Class: urn:content-classes:message
From: "Patty Lorge" <pl****@tririga.com>
Sender: "Patty Lorge" <pl****@tririga.com>
Subject: .NET 7.0 Add COM component to Project?
Date: Tue, 22 Jul 2003 09:44:01 -0700
Lines: 8
Message-ID: <0c****************************@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Thread-Index: AcNQcHRuH3CznLtoR3uH5nX9UUnfeA==
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:102038NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
X-Tomcat-NG: microsoft.public.dotnet.general

Hello,
I checked the Help and it says you Add/Remove COM
components and Type Libraries to Projects by selecting themenu item Project-->Add References. However my Project
does not have the Add References Menu item.

Any information will be appreciated.
Patty

--
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and

confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

.

Jul 19 '05 #3
Hi

Ok, C++ does not allow you to add references in this way in VS 2002 (only C# and VB).

For C++ it depends on what you want to do. If you want to use a COM component in a dll, you can use the #import directive or #include the header and add the
lib file to the linker (Project Properties\Linker\Input\Additional dependencies.

It should work very similar to how you did it in VS6.0. How were you doing it in 6.0?

Thx
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Jul 19 '05 #4
Gabriel,
Thanks, I found the Knowledge Base item that explains
this. The 6.0 source used regsvr32 to register the .dll
and #import in the source. I hope that's all there is to
it. I somehow thought that there was also Add Reference
but that must have been the VB client version.
Thanks again.
Patty
-----Original Message-----
Hi

Ok, C++ does not allow you to add references in this way in VS 2002 (only C# and VB).
For C++ it depends on what you want to do. If you want to use a COM component in a dll, you can use the #import
directive or #include the header and add thelib file to the linker (Project Properties\Linker\Input\Additional dependencies.
It should work very similar to how you did it in VS6.0. How were you doing it in 6.0?
Thx
Gabriel Esparza-Romero, Visual C# Team
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are
subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm

.

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Lecture Snoddddgrass | last post by:
Greetings, Can anyone recommend a good 3rd party docking windows component for WinForms? I'm looking for something that allows windows to not only be docked but to "popout", much like the...
2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
0
by: Steven Kilby | last post by:
I have a component (inproc dll) written in VB6. I have a client written in C#. If I compile the component to native code everything works fine. I add the necessary type library for my component...
2
by: Mervin Williams | last post by:
I have created a setup project for my application which includes a non .NET managed code COM object. My COM component is automatically registered when I build my project. I'm having problems...
2
by: Kurt Schroeder | last post by:
thanks much!!!i'm working through an example that creates a component called component.dll. This compiled ok w/o problem. I copied it to the bin directory of my project (vs.net asp.net vb project)...
1
by: ns2k | last post by:
I develop an Addins Project for Excel in Visual Studio.NET that I need it to work for any machine in any Microsoft Office XP. I use the dependecy (reference)...
4
by: Amin Sobati | last post by:
Hi, I have added a component class that inherits System.windows.Forms.TextBox. This component is in the same project as my windows application (executable). I could instantiate it and add to...
7
by: TClancey | last post by:
Hi all. I'm having some problems with a project I'm working on. I have a Class Library which contains several Component Classes, each working independantly. It seems that I can't have two...
2
by: alberthung01 | last post by:
Hi all, I wrote a component with ComponentDesigner to let users drag and drop it to WebPage from toolbox directly. Just like the behavior of dataAdapter. But it works fine on ASP.NET 1.1 but not...
4
by: =?Utf-8?B?Z3JlZw==?= | last post by:
I am trying to create an instance of a 3rd party COM component, and I'm getting an error. I've opened a ticket with this vendor as well, but I want to approach it from the C# .NET side to make...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.