Solved

EloeSysError-"CoInitialize has not been called"

Posted on 2001-06-27
3
257 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

772 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