Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / March 2006

Tip: Looking for answers? Try searching our database.

Adding a COM Component to my project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chsoft - 29 Mar 2006 12:30 GMT
In the Project Property Page in Visual Studio 2005 I want add a reference to
a COM Component to my VC++ MFC project. But in the Add Reference Dialog I can
only see the Project Tab. The other Tabs like .Net and COM aren't there.
What must I do to see this tabs?
"Gary Chang[MSFT]" - 30 Mar 2006 07:47 GMT
Hi,

>In the Project Property Page in Visual Studio 2005 I
>want add a reference to a COM Component to my
>VC++ MFC project. But in the Add Reference Dialog
>I can only see the Project Tab. The other Tabs like
>.Net and COM aren't there.
>What must I do to see this tabs?

Since the MFC project is an unmanaged project type, there hasn't add "Add
Reference" option/dialog for it in Visual Studio 2005. Only the .NET
project types have that "Add Reference" option/dialog. You need to use the
traditional ways to add the COM Component to your MFC project just as under
VC6 IDE.

For a COM component, you can use the VS2005's Add class wizard to create a
MFC wrapped class for it: Add Class | MFC | Add Class From ActiveX Control
or Add Class From TypeLib.

By the way, we usually discuss such an issue in the more appropriate
newsgroup vsnet.ide, you would get better and quicker help.

Thanks!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006.  Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.