Click here to Skip to main content
15,913,758 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Build Error - fatal error C1083 Pin
Reagan Conservative16-Mar-07 5:08
Reagan Conservative16-Mar-07 5:08 
GeneralRe: Build Error - fatal error C1083 Pin
vibindia16-Mar-07 5:18
vibindia16-Mar-07 5:18 
GeneralRe: Build Error - fatal error C1083 Pin
Reagan Conservative16-Mar-07 5:19
Reagan Conservative16-Mar-07 5:19 
QuestionWINDOWPLACEMENT Question Pin
Programm3r16-Mar-07 4:30
Programm3r16-Mar-07 4:30 
AnswerRe: WINDOWPLACEMENT Question Pin
Programm3r16-Mar-07 4:42
Programm3r16-Mar-07 4:42 
AnswerRe: WINDOWPLACEMENT Question Pin
JudyL_MD16-Mar-07 4:51
JudyL_MD16-Mar-07 4:51 
QuestionHtmlHelp with VC6 ? Pin
Dave_16-Mar-07 4:14
Dave_16-Mar-07 4:14 
AnswerRe: HtmlHelp with VC6 ? Pin
Dave_16-Mar-07 5:27
Dave_16-Mar-07 5:27 
I'm going to reply to my own question. It drives me nuts when people just say: never mind, I figured it out and leave it at that. Here's what I ended up doing:

In my CXXXApp (CWinApp derived class), I override WinHelp() and replace WinHelp() with the following:
<br />
//CWinApp::WinHelp(dwData,nCmd);<br />
CString szFile(m_pszHelpFilePath);<br />
char drive[_MAX_DRIVE];<br />
char dir[_MAX_DIR];<br />
char fname[_MAX_FNAME];<br />
char ext[_MAX_EXT];	<br />
_splitpath(szFile,drive,dir,fname,ext);<br />
CString szChm;<br />
szChm.Format("%s%s%s.chm",drive,dir,fname);<br />
nCmd = HH_HELP_CONTEXT;<br />
::HtmlHelp(AfxGetMainWnd()->m_hWnd,szChm,nCmd,dwData);<br />


I needed to have the platform SDK installed to get the htmlhelp.h and .lib files. With those added to my project, the help seems to work identically to the way it did with WinHelp (jumps to the right topic,...).

If you see something that I may have overlooked or could be doing better, please let me know.
QuestionDebug vs Release Pin
vibindia16-Mar-07 3:45
vibindia16-Mar-07 3:45 
AnswerRe: Debug vs Release Pin
James R. Twine16-Mar-07 3:49
James R. Twine16-Mar-07 3:49 
GeneralRe: Debug vs Release Pin
vibindia16-Mar-07 3:56
vibindia16-Mar-07 3:56 
AnswerRe: Debug vs Release Pin
prasad_som16-Mar-07 4:07
prasad_som16-Mar-07 4:07 
GeneralRe: Debug vs Release Pin
Sebastian Schneider16-Mar-07 4:12
Sebastian Schneider16-Mar-07 4:12 
GeneralRe: Debug vs Release Pin
prasad_som16-Mar-07 4:17
prasad_som16-Mar-07 4:17 
GeneralRe: Debug vs Release Pin
Sebastian Schneider16-Mar-07 5:11
Sebastian Schneider16-Mar-07 5:11 
GeneralRe: Debug vs Release Pin
Jörgen Sigvardsson16-Mar-07 5:24
Jörgen Sigvardsson16-Mar-07 5:24 
GeneralRe: Debug vs Release Pin
James R. Twine16-Mar-07 9:11
James R. Twine16-Mar-07 9:11 
GeneralRe: Debug vs Release Pin
Jörgen Sigvardsson16-Mar-07 13:38
Jörgen Sigvardsson16-Mar-07 13:38 
AnswerRe: Debug vs Release Pin
baerten16-Mar-07 3:50
baerten16-Mar-07 3:50 
Questionloading a new Form (MS vc++ 2005) Pin
luhfluh16-Mar-07 3:00
luhfluh16-Mar-07 3:00 
AnswerRe: loading a new Form (MS vc++ 2005) Pin
David Crow16-Mar-07 3:10
David Crow16-Mar-07 3:10 
AnswerRe: loading a new Form (MS vc++ 2005) Pin
prasad_som16-Mar-07 3:12
prasad_som16-Mar-07 3:12 
GeneralRe: loading a new Form (MS vc++ 2005) Pin
luhfluh16-Mar-07 3:35
luhfluh16-Mar-07 3:35 
GeneralRe: loading a new Form (MS vc++ 2005) Pin
prasad_som16-Mar-07 3:39
prasad_som16-Mar-07 3:39 
GeneralRe: loading a new Form (MS vc++ 2005) Pin
luhfluh16-Mar-07 4:02
luhfluh16-Mar-07 4:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.