![]() It would be wonderful if you could use the code above in your own little program, successfully run it with one of your own CHM files, and then contact me via private message to arrange to send me the help file you used.Could someone point me to a link that contains a CHM file I can download that has a known context ID that works with AfxMessageBox()? If I could get such a file, I could demonstrate conclusively that the problem is with how our CHM files were created.Is there any way for me to write a program that examines a help file and reports the values that would be valid to use in an AfxMessageBox() call?.Is there any way to find out any details about the "Failed to launch help" message? Is the problem that the application couldn't open the given file, or that the given context ID did not exist, or something else?.I should note here that this is the second file that illustrates the problem, which seems to indicate that there's something wrong with how we created help files. PApp->m_pszHelpFilePath = _T("C:\\Dev\\LD\\RSLogix5000\\BuildProducts\\Debug\\PVEdsConfigENU.chm") ĪfxMessageBox(_T("Does this help button work?"), MB_YESNO | MB_HELP | MB_ICONEXCLAMATION, 22966) LPCTSTR oldHelpFile = pApp->m_pszHelpFilePath ![]() void CHelpFileTEstDlg::OnBnClickedButton1() I wrote a tiny MFC dialog application that illustrates the problem. When I use another section of the application that opens the help page using another method I don't understand, it works. (I know that because someone pointed me to the FUL Help program, which has a way to show the context ID numbers in the ALIAS section of the help file.) Everything is correct, yet I can't show the help file. When the Help button is clicked, another message box appears saying "Failed to launch help" The application first sets its help file to the desired file, and then calls AfxMessageBox with a help context ID that exists in the help file. If Windows keeps asking you whether you REALLY want to open the Help file, tell it that you. If the user makes a very strange sequence of incorrect choices, a little message box pops up with a Help button. In Explorer, right-click on the CHM file, and click on Properties. I am spending way too much time on this problem that nobody noticed in my company's application for the past several years. Ĭredits: Upvote and downvote icons by u/Avereniect Homework help posts must be flaired with. However, we will not do your homework for you, make apps for you, etc. Members of this subreddit are happy to help give you a nudge in the right direction. When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Rule 3 - Good Faith Help Requests
0 Comments
Leave a Reply. |