Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX on a DLL form 1

Status
Not open for further replies.

torvet52

Programmer
May 3, 2004
3
DK
Hi there

I have created an DLL with form but i cant get it to work with an activeX on the form please help with some examples needed.

Best regards K. Petersen
 
Hi Torvet52,

just add CoInitialize(nil) to your constructor and CoUninitialize in your destructor (don't forget to add the "activex" unit to the 'uses' part). Delphi does this automatically when creating a normal win32 app but not when you create a service or dll or something like that.

Hope this helps,
Daddy

--------------------------------------
What You See Is What You Get
 
Can you elaborate? What problems/errors are you getting?

buho (A).
 
To whosrdaddy

I got an undeclared identifier CoInitializer same for CoUnInitialize am i missing som uses my is:

ShareMem, Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, ATIDRIVERLib_TLB, StdCtrls, Grids, Outline, DirOutln;

Best regards K.Petersen
 
add 'activeX' unit to your uses list, just like I said :)

--------------------------------------
What You See Is What You Get
 
Thanx Whosrdaddy

I misunderstood activex i thourgth it was my activeX not the unit

sorry

It seems to work now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top