How to Initialize COM Library in VC++.NET 2005

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2006
Posts: 38
Reputation: asifjavaid is an unknown quantity at this point 
Solved Threads: 0
asifjavaid asifjavaid is offline Offline
Light Poster

How to Initialize COM Library in VC++.NET 2005

 
0
  #1
Dec 5th, 2008
Hi,

I am new to COM Programming.

I want to initialize COM library. I am calling

hr = CoInitializeEX(NULL);

but hr = S_FAIL. and my code is stopped.

What I have to do further to execute COM program written in VC++.NET 2005.


--
Regards,
Asif
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 147
Reputation: Laiq Ahmed will become famous soon enough Laiq Ahmed will become famous soon enough 
Solved Threads: 20
Laiq Ahmed Laiq Ahmed is offline Offline
Junior Poster

Re: How to Initialize COM Library in VC++.NET 2005

 
0
  #2
Dec 5th, 2008
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 38
Reputation: asifjavaid is an unknown quantity at this point 
Solved Threads: 0
asifjavaid asifjavaid is offline Offline
Light Poster

Re: How to Initialize COM Library in VC++.NET 2005

 
0
  #3
Dec 5th, 2008
Originally Posted by Laiq Ahmed View Post
The Below Links would help you.

http://www.csharphelp.com/archives/archive281.html
http://bytes.com/groups/net-c/273488...-com-objects-c

Hi,

These links are for C#.NET. I need to know the COM Programming in C++.NET 2005
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,433
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1471
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Still Learning

Re: How to Initialize COM Library in VC++.NET 2005

 
0
  #4
Dec 5th, 2008
CodeProject has some articles that may help you.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 147
Reputation: Laiq Ahmed will become famous soon enough Laiq Ahmed will become famous soon enough 
Solved Threads: 20
Laiq Ahmed Laiq Ahmed is offline Offline
Junior Poster

Re: How to Initialize COM Library in VC++.NET 2005

 
0
  #5
Dec 5th, 2008
Read the Following Article

http://msdn.microsoft.com/en-us/library/64hyx33x.aspx

if it doesn't help you I will provide you the sample Code as well as steps
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC