Solved

EloeSysError-"CoInitialize has not been called"

Posted on 2001-06-27
3
256 Views
Last Modified: 2010-04-06
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
Comment
Question by:jlislo
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Epsylon earned 50 total points
ID: 6232649
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
 

Author Comment

by:jlislo
ID: 6232662
Thank you very much!
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6232680
You're welcome
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Delphi OLE Error 8 96
Using idhttp to login to instagram 2 76
When I am typing into a TEdit last word repeats 7 119
Firemonkey webbrowser scrollbars ? 1 29
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now