{"id":3738,"date":"2014-03-30T05:05:14","date_gmt":"2014-03-30T05:05:14","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/htlmhelpw-unicode-version-specifies-2-parameters-how-is-chm-file-specified-collection-of-common-programming-errors\/"},"modified":"2014-03-30T05:05:14","modified_gmt":"2014-03-30T05:05:14","slug":"htlmhelpw-unicode-version-specifies-2-parameters-how-is-chm-file-specified-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/htlmhelpw-unicode-version-specifies-2-parameters-how-is-chm-file-specified-collection-of-common-programming-errors\/","title":{"rendered":"HtlmHelpW (Unicode version) specifies 2 parameters. How is *.chm file specified?-Collection of common programming errors"},"content":{"rendered":"<p>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( \u00a0\u00a0 DWORD_PTR dwData, \u00a0\u00a0 UINT nCmd = 0x000F<\/p>\n<p>);<\/p>\n<p>How do I tell the API where to find my compiled help (chm)?<\/p>\n<p>I tried the following code.\u00a0It compiles.\u00a0It fails at runtime: Windows 7 issues an Information\u00a0Dialog &#8211; &#8220;Failed to launch help.&#8221;<\/p>\n<p>CString strHelpFile;&#8221;MyAppHelpFile.chm&#8221;);<\/p>\n<p>int nStrLen = strHelpFile.GetLength();<\/p>\n<p>LPCTSTR ptrFileName = strHelpFile.GetBufferSetLength(nStrLen);<\/p>\n<p>HtmlHelpW((DWORD_PTR) ptrFileName, HH_DISPLAY_TOPIC);<\/p>\n<p>What does HtmlHelpW want for the 1st parameter? I have not fould any explanations on the web.<\/p>\n<p>strHelpFile.Format(L<\/p>\n<p>Jesse Johnson<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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( \u00a0\u00a0 DWORD_PTR dwData, \u00a0\u00a0 UINT nCmd = 0x000F ); How do I tell the API where to find my compiled help (chm)? I tried the following code.\u00a0It compiles.\u00a0It fails at runtime: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3738","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3738"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3738\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}