943,827 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1225
  • C++ RSS
Dec 5th, 2008
0

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

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
asifjavaid is offline Offline
40 posts
since Oct 2006
Dec 5th, 2008
0

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

Reputation Points: 113
Solved Threads: 20
Junior Poster
Laiq Ahmed is offline Offline
147 posts
since Jun 2006
Dec 5th, 2008
0

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


Hi,

These links are for C#.NET. I need to know the COM Programming in C++.NET 2005
Reputation Points: 10
Solved Threads: 0
Light Poster
asifjavaid is offline Offline
40 posts
since Oct 2006
Dec 5th, 2008
0

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

CodeProject has some articles that may help you.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,950 posts
since Aug 2005
Dec 5th, 2008
0

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

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
Reputation Points: 113
Solved Threads: 20
Junior Poster
Laiq Ahmed is offline Offline
147 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: arrays! a little help!
Next Thread in C++ Forum Timeline: Deleting spaces in a string





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC