change signature of ActiveXControlComponent::createControl?


#1

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.

-DB


#2

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…


#3

I figured since it was already inside JUCE_WIN32 there was a chance of using an OS type. http://msdn.microsoft.com/en-us/library/bb401631.aspx tells me 32 bits are enough for casting.

Thanks.

-DB