我在delphi中遇到问题 我在delphi的运行环境中调用shellExecute(Handle, 'open', PChar('help/newproject.chm'),nil, nil, SW_SHOW);end;没问题。可是程序打包后在运行时就没有反应了,帮助文件不出来。为什么?谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 哈,哈哈,狂晕用这个函数再试试 Winexec(PChar(GetCurrentDir+'help/newproject.chm'),SW_SHOW); procedure TMain_Form.ExecHelp(aName: string);var zDir: array[0..79] of Char;begin if FileExists(ExtractFilePath(Application.ExeName) + 'Help\' + aName) then ShellExecute(Application.Handle, 'open', Pchar('Help\' + aName), nil, StrPCopy(zDir, ExtractFilePath(Application.ExeName)), SW_SHOW);end; 想实现一个可以按组展开收缩的LISTVIEW,大家有什么的建议吗 帮我刚出生的小孩取个小名,男孩,谢谢 请ahjoe(强哥)进来~~~ 哪本书详细讲到FindFirst和FindNext查找文件??? GetTickCount函数的功能是什么? 求助关于C#和Delphi共存问题! GIF程序扩展块问题! 100分 怎么获取CPU的占用率? 怎么判断ADOTable中的日期型字断为空 请教各位。见者给分。 大家新年好(有谁有关于DELPHI 分布式开发的电子书)谢谢!!来观者有喜! 对文本文件的操作?请看代码!
用这个函数再试试
Winexec(PChar(GetCurrentDir+'help/newproject.chm'),SW_SHOW);
var
zDir: array[0..79] of Char;
begin
if FileExists(ExtractFilePath(Application.ExeName) + 'Help\' + aName) then
ShellExecute(Application.Handle, 'open', Pchar('Help\' + aName), nil, StrPCopy(zDir, ExtractFilePath(Application.ExeName)), SW_SHOW);
end;