On the Form Create in your DLL make sure you have CoInitialize(nil);

procedure TMainForm.FormCreate(Sender: TObject);
begin
     CoInitialize(nil);
...
...
End;

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Philbert
Sent: 27 September 2005 16:13
To: [email protected]
Subject: [delphi-en] ADO in DLLs

I have a small problem with ADO components and DLLs. I have a form 
which has ADO components and it is loaded from a DLL. the problem is 
that whenever the form is opened, i get an error saying 
CoInitialize... Any assistance will be of great help.

Phil






-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links



 




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to