D
day_and_day
Unregistered / Unconfirmed
GUEST, unregistred user!
在Dll中如何操作数据库?我在Dll中建了个DM,放上ADOConnection和ADOCommand,
写过程如下,编译通过
Procedure AccessDB;StdCall;
begin
with DMDll do
begin
ADOConnection.Connected := True;
CmdDll.CommandText := 'delete from employee where empl_no='''+inttostr(17)+'''';
CmdDll.Execute;
ADOConnection.Connected := False;
end;
end;
exports
AccessDB;
调用Dll:
Procedure AccessDB;StdCall;External'CreateDll.dll'
调用工程编译也可通过,但执行时提示“无法定位程序输入点AccessDB于动态链接库CreateDll.dll上” WHY???? 请指教
写过程如下,编译通过
Procedure AccessDB;StdCall;
begin
with DMDll do
begin
ADOConnection.Connected := True;
CmdDll.CommandText := 'delete from employee where empl_no='''+inttostr(17)+'''';
CmdDll.Execute;
ADOConnection.Connected := False;
end;
end;
exports
AccessDB;
调用Dll:
Procedure AccessDB;StdCall;External'CreateDll.dll'
调用工程编译也可通过,但执行时提示“无法定位程序输入点AccessDB于动态链接库CreateDll.dll上” WHY???? 请指教