Re: MFC and COM with WMI
- From: one-trick-pony <worldofpain.aamir@xxxxxxxxx>
- Date: Wed, 27 Jun 2007 10:29:43 -0700
Thanks gentlemen. Half the battle is over. My application is single
threaded. As I expected, COM is initialized only once.
To tackle the other half, why is it not functioning properly when
calling a Private Member function/method? That is, if I do not call
CoInitilize inside the private member function definition, it fails
upon executing CoCreateInstance. In other words, same application is
initializing COM more than once which contradicts the correct approach
of having to initialize COM library only once in the same single-
threaded application. Again as I mentioned before, my PUBLIC MEMBER
function of the class work fine with having COM library being
initialized just once.
Keep the good tips comin' !
Thanks
.
- Follow-Ups:
- Re: MFC and COM with WMI
- From: Jason
- Re: MFC and COM with WMI
- References:
- MFC and COM with WMI
- From: one-trick-pony
- Re: MFC and COM with WMI
- From: Jason
- MFC and COM with WMI
- Prev by Date: Re: VC6.0 SP6 BUG ?
- Next by Date: Re: VC6.0 SP6 BUG ?
- Previous by thread: Re: MFC and COM with WMI
- Next by thread: Re: MFC and COM with WMI
- Index(es):