|
I have a dll file that contains a form and an ActiveX control inside the form. I want to call a function in the dll in another project without displaying the form in the dll. The system always reports an error: CoInitialize Who can tell me why? How should it be achieved? The following is a function in the form that my Dll contains:
procedure Info;
var
Form1: TForm1;
Begin
Form1: = TForm1.Create (nil);
ShowMessage ('hello3');
Form1.Free;
End; I tried it, other space is OK, ActiveX control is not enough, master click it! !! !! |
|