473,320 Members | 1,856 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,320 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 2490
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.