Click here to Skip to main content
15,912,329 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionDrawText and SetWindowPos? Pin
15-Dec-00 9:10
suss15-Dec-00 9:10 
AnswerRe: DrawText and SetWindowPos? Pin
20-Dec-00 6:16
suss20-Dec-00 6:16 
QuestionIntercept all input from user? Pin
15-Dec-00 8:30
suss15-Dec-00 8:30 
GeneralA problem about the focus of a dialog Pin
15-Dec-00 7:48
suss15-Dec-00 7:48 
GeneralXaudio tutorial... Pin
15-Dec-00 6:25
suss15-Dec-00 6:25 
GeneralRe-Basing DLLs Pin
15-Dec-00 5:28
suss15-Dec-00 5:28 
GeneralRe: Re-Basing DLLs Pin
Michael Dunn15-Dec-00 6:07
sitebuilderMichael Dunn15-Dec-00 6:07 
GeneralProblem to launch chm file in Visual C++ Pin
14-Dec-00 23:10
suss14-Dec-00 23:10 
Hi,

I use a Html Compile file (.chm) instead of hlp file in my Visual C++ 6.0 app.
To launch this file i have a button which call ShelExecute function like this :

ShellExecute(m_hWnd, "open","c:\\Myproject\\MyFile.chm", NULL, NULL, SW_SHOWNORMAL);

It work.

If i press F1 Key i want to launch my chm file, but Winhelp try to run
"c:\\Myproject\\MyFile.hlp". This file don't exist.

To avoid this i override CWinApp::winhelp event in order to use Html Help API instead of
Winhelp like this :


----------------------------------------------------------------------------------
#include "htmlhelp.h"
#pragma comment(lib,"htmlhelp.lib ")


void CNetSenderDlg::WinHelp(DWORD dwData, UINT nCmd)
{
// TODO: Add your specialized code here and/or call the base class

if (nCmd==HELP_CONTEXT)
HtmlHelp(m_hWnd,"c:\\Myproject\\MyFile.chm",HH_DISPLAY_TOPIC,0);

CDialog::WinHelp(dwData, nCmd);
}
----------------------------------------------------------------------------------
BUT IT DON'T WORK. My App try always to launch MyFile.hlp


Can anybody help me to solve this problem



Best regards

GeneralRe: Problem to launch chm file in Visual C++ Pin
Tim Deveaux17-Dec-00 9:32
Tim Deveaux17-Dec-00 9:32 
GeneralPlease Help! - CPropertySheetEx in ATL COM Server Pin
Girish Betadpur14-Dec-00 20:40
Girish Betadpur14-Dec-00 20:40 
GeneralRe: Please Help! - CPropertySheetEx in ATL COM Server Pin
Michael Dunn15-Dec-00 6:10
sitebuilderMichael Dunn15-Dec-00 6:10 
Generalconversion from UNICODE to unsigned char Pin
14-Dec-00 19:43
suss14-Dec-00 19:43 
GeneralRe: conversion from UNICODE to unsigned char Pin
Jonathan Gilligan14-Dec-00 20:08
Jonathan Gilligan14-Dec-00 20:08 
GeneralRe: conversion from UNICODE to unsigned char Pin
Michael Dunn15-Dec-00 6:12
sitebuilderMichael Dunn15-Dec-00 6:12 
GeneralRe: conversion from UNICODE to unsigned char Pin
15-Dec-00 21:09
suss15-Dec-00 21:09 
GeneralRe: conversion from UNICODE to unsigned char Pin
Julien21-Dec-00 12:35
Julien21-Dec-00 12:35 
GeneralVisual C++ 6.0 BIG problem!!! Pin
Yong Haur TAY14-Dec-00 16:40
Yong Haur TAY14-Dec-00 16:40 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Matt Philmon14-Dec-00 18:08
Matt Philmon14-Dec-00 18:08 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Yong Haur TAY15-Dec-00 14:50
Yong Haur TAY15-Dec-00 14:50 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Matt Philmon14-Dec-00 18:12
Matt Philmon14-Dec-00 18:12 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Yong Haur TAY15-Dec-00 14:59
Yong Haur TAY15-Dec-00 14:59 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Yong Haur TAY18-Dec-00 1:36
Yong Haur TAY18-Dec-00 1:36 
GeneralSolved!!! Visual C++ 6.0 BIG problem!!! Pin
Yong Haur TAY18-Dec-00 16:40
Yong Haur TAY18-Dec-00 16:40 
GeneralRe: Visual C++ 6.0 BIG problem!!! Pin
Matt Philmon15-Dec-00 16:23
Matt Philmon15-Dec-00 16:23 
GeneralCrash on Project Conversions Pin
Ron Ginsberg14-Dec-00 15:08
Ron Ginsberg14-Dec-00 15:08 

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.