0

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.

  • What does Google tell you about [Could not obtain OLE control window handle](https://www.google.com/search?q=could+not+obtain+ole+control+window+handle&ie=utf-8&oe=utf-8)? – Ken White Apr 02 '15 at 22:20

1 Answers1

0

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)

Stijn Sanders
  • 35,982
  • 11
  • 45
  • 67