在vc中的呼叫chm檔案的方法

2021-07-04 05:53:35 字數 656 閱讀 9409

.在vc中的呼叫方法

在vc中的函式原型為hwnd htmlhelp(hwnd    hwndcaller,lpcstr  pszfile,uint    ucommand,dword   dwdata) ;呼叫時需要包含htmlhelp.lib 和 htmlhelp.h這兩個檔案,

預設路徑是c:\program files\html help workshop\lib和c:\program files\html hel

p workshop\include,你可以把這兩個檔案拷到vc可以辨認的目錄下在vc程式裡加上#i

nclude "htmlhelp.h",並在選單project下的setting中的link下加入htmlhelp.lib

你在你的程式中加入下列語句之一就可以呼叫該幫助檔案了:

hwnd helpwnd=htmlhelp(getsafehwnd( ),"hh.chm::/01.htm>hh",hh_display_topic,null) ;

hwnd helpwnd=htmlhelp(getsafehwnd( ),"hh.chm::/01.htm",hh_display_toc,null);

hwnd helpwnd=htmlhelp(getsafehwnd( ),"hh.chm",hh_display_index,(dword)"幫助一") ;

在Delphi中呼叫CHM幫助檔案

在delphi中,要呼叫chm檔案可以通過引用hhctrl.ocx檔案的函式htmlhelpa實現。不過在這裡,我們也可以使用api函式shellexecute來開啟chm幫助檔案。在網上找到的資料,通常以 shellexecute self.handle,open help.chm sw show...

在VB中呼叫CHM 幫助的幾種方法

在vb中呼叫chm 幫助的幾種方法 2009年12月18日 b 關 鍵 詞 b 呼叫 在vb中呼叫chm 幫助的幾種方法 乙個應用程式不論編制得如何完美,在很多情況下使用者還是會對如何使用它提出問題。visual basic 提供了對兩種不同幫助系統的支援 傳統的 windows 幫助系統 winh...

在VC下如何讀取chm檔案

在vc下如何讀取chm檔案 在我用vc呼叫了html help之後,才發現用vc呼叫html help並不是一件簡單的事。在visual c 6中呼叫html help沒有現成的函式,需要呼叫htmlhelp 這個api函式。而在呼叫這個函式之前,還需要在你的工程中加上htmlhelp的庫和標頭檔案...