changhoon.ahn
changhoon.ahn

Reputation: 1

RemObjects SDK, EOleError with message ‘Could not obtain OLE control window handle’ in Delphi

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

Answers (1)

Stijn Sanders
Stijn Sanders

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

Related Questions