帮我看看,为什么出错

wsforqyc 2002-10-15 05:43:17
为什么总是冒出CPU错误,且函数未执行完就返回了!


private
{ Private declarations }
public
{ Public declarations }
end;

TModPas=Function(OldPwd:PChar;NewPwd:PChar):Boolean;

var
Form1: TForm1;
ModPassWord:TModPas;

implementation



{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
var
xx1,xx2:PChar;
hh:thandle;
begin
hh:=LoadLibrary(PChar('xpformdll.dll'));
if hh<>0 then
@ModPassWord:=GetProcAddress(HH,'ModPassWord');
if (@ModPassWord)<>nil then
if TModPas(ModPassWord)(xx1,xx2) then
showmessage(xx1)
else
showmessage('nopt');
FreeLibrary(hh);
end;
...全文
51 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
mynameis007 2002-10-15
  • 打赏
  • 举报
回复
关注:
jiezhi 2002-10-15
  • 打赏
  • 举报
回复
或许你的delphi有毛病

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧