HtlmHelpW (Unicode version) specifies 2 parameters. How is *.chm file specified?-Collection of common programming errors

I am converting my application to 64-Bit (x64). The app is now Unicode (was previously ANSI). The HtmlHelp command is now virtual void HtmlHelpW(    DWORD_PTR dwData,    UINT nCmd = 0x000F

);

How do I tell the API where to find my compiled help (chm)?

I tried the following code. It compiles. It fails at runtime: Windows 7 issues an Information Dialog – “Failed to launch help.”

CString strHelpFile;”MyAppHelpFile.chm”);

int nStrLen = strHelpFile.GetLength();

LPCTSTR ptrFileName = strHelpFile.GetBufferSetLength(nStrLen);

HtmlHelpW((DWORD_PTR) ptrFileName, HH_DISPLAY_TOPIC);

What does HtmlHelpW want for the 1st parameter? I have not fould any explanations on the web.

strHelpFile.Format(L

Jesse Johnson