instance ways | developer.brewmp.com instance ways | developer.brewmp.com

Developer

instance ways

Forums:

I added a staticclass the constructor is below

int ITESTExt_New(IShell *ps, AEECLSID cls, void **ppif)

Q. Do I use IEnv_CreateInstance()? only possible ISHELL_CreateInstance to create instance?
What is different between both?

in project code, I've seen both ways using the same CLSID.

It depends on the requirement, you may use ISHELL_CreateInstance() in general.
 
Env:-
https://developer.brewmp.com/reference/api/brew-mp-102-pro/ienv

It depends on the requirement, you may use ISHELL_CreateInstance() in general.
 
Env:-
https://developer.brewmp.com/reference/api/brew-mp-102-pro/ienv