OcxFileName := StringOfChar( ' ', 256); p := PChar( OcxFilename ); GetSystemDirectory(p,255); StrCat(p,'\HHCTRL.OCX'); HHControlInstance := LoadLibrary( P );[Error] HTMLHELP_Decl.pas(443): Left side cannot be assigned to [Fatal Error] main.pas(36): Could not compile used unit 'HTMLHELP_Decl.pas'编译出错 帮帮忙呀 急人
我急
谁帮我搞定
起码给80分!!!
p := PChar( OcxFilename );
GetSystemDirectory(p,255);
StrCat(p,'\HHCTRL.OCX');
HHControlInstance := LoadLibrary( P );[Error] HTMLHELP_Decl.pas(443): Left side cannot be assigned to
[Fatal Error] main.pas(36): Could not compile used unit 'HTMLHELP_Decl.pas'编译出错
帮帮忙呀
急人
//关闭 Help
HtmlHelp( 0, '', HH_CLOSE_ALL, nil );
//索引
HtmlHelp( handle, AppPath+'\data\System.chm::/HelpContent\index.htm',
HH_DISPLAY_INDEX, DWORD_PTR(PChar('关于系统')));
//子标题
HtmlHelp( handle, AppPath+'\data\System.chm::/HelpContent\index.htm',
HH_DISPLAY_TOPIC, nil);
//关键字查找
var link: HH_AKLINK;
begin
link.cbStruct := sizeof(HH_AKLINK) ;
link.fReserved := FALSE ;
link.pszKeywords := 'Hongyan'; //关键字
link.pszUrl := nil;
link.pszMsgText := nil;
link.pszMsgTitle := nil;
link.pszWindow := 0;
link.fIndexOnFail := TRUE ;
HtmlHelp( handle,AppPath+'\data\System.chm',
HH_KEYWORD_LOOKUP,
DWORD_PTR(@link));
具体事谊可发信至[email protected].
uses Shellapi
ShellExecute(handle,nil,pchar('你的网址'),nil,nil,sw_shownormal);
ShellExecute(handle, "open", 'myhelp.chm', Nil, Nil, SW_SHOWNORMAL);
2,uses shellapi
3, 在form的onkeydown中加入对f1键的响应
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_F1 then
ShellExecute(handle, 'Open', 'd:\abc.chm', nil, nil, SW_SHOWMAXIMIZED);
end;
2,uses shellapi
3, 在form的onkeydown中加入对f1键的响应
procedure TForm1.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Key = VK_F1 then
ShellExecute(handle, 'Open', 'd:\abc.chm', nil, nil, SW_SHOWMAXIMIZED);
end;