Home > Back-end >  Using CComObject <Class> CreateInstance in creating components directly
Using CComObject <Class> CreateInstance in creating components directly

Time:10-04

COM a novice, I want to know this CComObject this template need to implement?
What is CComObject role?

CComObject * ptrMath;
CComObject : : CreateInstance (& amp; PtrMath);
CComPtr PMath=ptrMath;

If it's not his to achieve
Want to use the code above need to contain what header files?
If we can put up a better source

CodePudding user response:

refer to the original poster xiakexing_long response:
COM a novice, I want to know the CComObject template need to implement this?
What is CComObject role?

CComObject * ptrMath;
CComObject : : CreateInstance (& amp; PtrMath);
CComPtr PMath=ptrMath;

If it's not his to achieve
Want to use the code above need to contain what header files?
Posted if you can source better

Keep an eye on
  • Related