H
hbklove8
Unregistered / Unconfirmed
GUEST, unregistred user!
想写一个程序调用DLL 然后给各个dll指定handle然后当主程序关闭时关闭所有由主程序打开的dll.
在windows中有这段代码
function CreateWindowEx(dwExStyle: DWORD; lpClassName: PChar;
lpWindowName: PChar; dwStyle: DWORD; X, Y, nWidth, nHeight: Integer;
hWndParent: HWND; hMenu: HMENU; hInstance: HINST; lpParam: Pointer): HWND;
var
FPUCW: Word;
begin
FPUCW := Get8087CW;
Result := _CreateWindowEx(dwExStyle, lpClassName, lpWindowName, dwStyle,
X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
Set8087CW(FPUCW);
end;
不知道有没有更高明的做法呢?
还想再问一个问题,写mssql2000程序用什么控件比较好,要调用存储过程,还要事务处理.
(分不多,还请见谅!)
在windows中有这段代码
function CreateWindowEx(dwExStyle: DWORD; lpClassName: PChar;
lpWindowName: PChar; dwStyle: DWORD; X, Y, nWidth, nHeight: Integer;
hWndParent: HWND; hMenu: HMENU; hInstance: HINST; lpParam: Pointer): HWND;
var
FPUCW: Word;
begin
FPUCW := Get8087CW;
Result := _CreateWindowEx(dwExStyle, lpClassName, lpWindowName, dwStyle,
X, Y, nWidth, nHeight, hWndParent, hMenu, hInstance, lpParam);
Set8087CW(FPUCW);
end;
不知道有没有更高明的做法呢?
还想再问一个问题,写mssql2000程序用什么控件比较好,要调用存储过程,还要事务处理.
(分不多,还请见谅!)