change signature of ActiveXControlComponent::createControl?

I’m looking for a way to get access to the return value of the OleCreate call made inside ActiveXControlComponent::createControl. If that function fails, it’s interesting to know why.

Would you consider either changing the signature of ActiveXControlComponent::createControl to return HRESULT? I realize this is a windows-specific type. Not sure if that’s OK. Maybe there’s another way?

Thanks for your help.


Can’t return a HRESULT directly, because the juce header files never include any os-specific headers, so that type isn’t available. I guess it could return the hresult cast to an int64 though…

I figured since it was already inside JUCE_WIN32 there was a chance of using an OS type. tells me 32 bits are enough for casting.