L
lwaif
Unregistered / Unconfirmed
GUEST, unregistred user!
做了个ActiveX DLL动态连接库,在库里放了个窗口和ADO控件,
procedure TMainForm.FormCreate(Sender: TObject);
begin
CoInitialize(NIL);
end;
procedure TMainForm.FormDestroy(Sender: TObject);
begin
CoUninitialize;
end;
程序里加了这些,但是用VC程序掉用这DLL时窗口打开可以,ADO也可以打开数据库,
但退出时就出现错误:
Debug Error!
Program:...
Module:i386/chkesp.c
Line:42
The value of ESP was not properly saved across a function call.This is usually a result of
calling a function declared with one calling convention with a function pointer declared with
a different calling convention.
procedure TMainForm.FormCreate(Sender: TObject);
begin
CoInitialize(NIL);
end;
procedure TMainForm.FormDestroy(Sender: TObject);
begin
CoUninitialize;
end;
程序里加了这些,但是用VC程序掉用这DLL时窗口打开可以,ADO也可以打开数据库,
但退出时就出现错误:
Debug Error!
Program:...
Module:i386/chkesp.c
Line:42
The value of ESP was not properly saved across a function call.This is usually a result of
calling a function declared with one calling convention with a function pointer declared with
a different calling convention.