Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,

I have read lot many articles but always wonder what is exact difference between CreateInstance and CoCreateInstance. I know fundamentals of COM but do not know its intricacies.

Thanks
Posted
Updated 23-Feb-16 22:06pm

1 solution

CoCreateInstance is the helper function in the COM libraries, that locates the classfactory for the object you're after (by CLSID or PROGID) and invokes its IClassFactory::CreateInstance method

So, in practice they're the same thing
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900