version 1.21, 2009/03/09 15:40:57 |
version 1.23, 2009/04/24 13:19:33 |
Line 104 CAsir32guiView::CAsir32guiView() |
|
Line 104 CAsir32guiView::CAsir32guiView() |
|
Logfp = NULL; |
Logfp = NULL; |
ResetIndex(); |
ResetIndex(); |
theView = this; |
theView = this; |
|
#if _MSC_VER > 1300 |
|
/* VS2003.NET or later */ |
|
(AfxGetApp())->EnableHtmlHelp(); |
|
#endif |
} |
} |
|
|
CAsir32guiView::~CAsir32guiView() |
CAsir32guiView::~CAsir32guiView() |
Line 489 void CAsir32guiView::OnFileOpen() |
|
Line 493 void CAsir32guiView::OnFileOpen() |
|
} |
} |
void CAsir32guiView::viewHtmlHelp(char *help) |
void CAsir32guiView::viewHtmlHelp(char *help) |
{ |
{ |
|
char *helpfile; |
|
char fmt[] = "%s\\help\\%shelp.chm"; |
|
char root[BUFSIZ],errmsg[BUFSIZ]; |
|
get_rootdir(root,sizeof(root),errmsg); |
|
helpfile = (char *)malloc(sizeof(fmt) + strlen(root) + strlen(help)); |
|
sprintf(helpfile,fmt,root,help); |
#if _MSC_VER < 1300 |
#if _MSC_VER < 1300 |
/* Visual C++ 6.0 */ |
/* Visual C++ 6.0 */ |
char root[BUFSIZ],errmsg[BUFSIZ], helpfile[BUFSIZ]; |
|
get_rootdir(root,sizeof(root),errmsg); |
|
sprintf(helpfile,"%s\\help\\%shelp.chm",root,help); |
|
::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0); |
::HtmlHelp(NULL, helpfile, HH_DISPLAY_TOPIC, 0); |
|
#else |
|
CWinApp *top = AfxGetApp(); |
|
top->SetHelpMode(AFX_HELP_TYPE::afxHTMLHelp); |
|
if (top->m_pszHelpFilePath) { |
|
free((void*)top->m_pszHelpFilePath); |
|
} |
|
top->m_pszHelpFilePath = helpfile; |
|
HtmlHelp(HH_DISPLAY_TOPIC, 0); |
#endif |
#endif |
} |
} |
|
|