Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 268
  • Last Modified:

EloeSysError-"CoInitialize has not been called"

I try to run a DLL with TWebBrowser and I got the error message.

EloeSysError-"CoInitialize has not been called"

Need help, Thanks.

JL
0
jlislo
Asked:
jlislo
  • 2
1 Solution
 
EpsylonCommented:
Just call

CoInitialize(nil);

at DLL startup e.g. in the 'initialization' section of a unit.

Don't forget to put 'ActiveX' in the uses clause.


Call CoUninitialize in the finalization section.
0
 
jlisloAuthor Commented:
Thank you very much!
0
 
EpsylonCommented:
You're welcome
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now