Reputation: 1
I'm trying to create a Delphi RemObjects SDK Combo Service/Standalone project.
I could put an ActiveX control on the form. But If run it, it crashes with an error message, "Project NewProjectClient.exe raised exception class EOleError with message 'Could not obtain OLE control window handle'.".
What is going wrong?
Thanks.
Upvotes: 0
Views: 1057
Reputation: 36840
Any application that wants to use COM/ActiveX/OLE, must call CoInitialize
or CoInitializeEx
at least once, ideally during start-up. (Or OleInitialize
which itself calls CoInitialize
)
Upvotes: 0