I've got such a problem. In Visual Basic I have made ActiveX Dll and function like:
Public Sub showError(error as ErrObject)
A this Dll I want to use in VC++
I create IDL file, compile it, generated .c and .h files were added to project a compiled.
But then the function in VC++ looks like:
HRESULT showError(VBA::_ErrObject **error);
And I don't know how to create that VBA::_ErrObject in VC++.
It look like it is a normal COM object (_ErrObject) but _ErrObjectPtr.CreateInstance doesn't work.
I have #import msvbvm60.dll used.
Thanks for help.