I want to use __uuidof in function CoCreateInstance:
CoCreateInstance(clsid,NULL,CLSCTX_INPROC_SERVER,__uuidof(Isesoft),(LPVOID*)&pem);
error:
'__uuidof' was not declared in this scope.
How can I use it in MINGW?
__uuidof
is an MS specific extension, but you should be able to replace __uuidof(IMyInterface)
with IID_IMyInterface
for the same behavior in a portable way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With