Click here to Skip to main content
15,891,513 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a reason you would initialise variables like this? Pin
jschell28-Jul-12 6:14
jschell28-Jul-12 6:14 
AnswerRe: Is there a reason you would initialise variables like this? Pin
Richard MacCutchan25-Jul-12 1:52
mveRichard MacCutchan25-Jul-12 1:52 
AnswerRe: Is there a reason you would initialise variables like this? PinPopular
George L. Jackson25-Jul-12 7:07
George L. Jackson25-Jul-12 7:07 
GeneralRe: Is there a reason you would initialise variables like this? Pin
MarkB77725-Jul-12 22:45
MarkB77725-Jul-12 22:45 
GeneralRe: Is there a reason you would initialise variables like this? Pin
w-peuker26-Jul-12 21:30
w-peuker26-Jul-12 21:30 
AnswerRe: Is there a reason you would initialise variables like this? Pin
Eugen Podsypalnikov25-Jul-12 7:42
Eugen Podsypalnikov25-Jul-12 7:42 
AnswerRe: Is there a reason you would initialise variables like this? Pin
Malli_S25-Jul-12 20:58
Malli_S25-Jul-12 20:58 
QuestionShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 7:31
Andraw11124-Jul-12 7:31 
Dear all,

HINSTANCE handle = ShellExecute(NULL, NULL, strHlpFile, NULL, NULL, SW_SHOW);

I create a application in MFC, it works fine in Window XP and return 42 value, but if run it in Window 7, it cannot open the .CHM or PDF file, the return code is 8.

What's the problem? how can I solve issue?

I try to use system() to launch .CHM or PDF file, it works fine in both Window XP and Window 7, but it has MS-DOS black screen there, how can I let MS-DOS not shown?

Thank you very much!
QuestionRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
David Crow24-Jul-12 8:06
David Crow24-Jul-12 8:06 
AnswerRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 8:13
Andraw11124-Jul-12 8:13 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 8:28
enhzflep24-Jul-12 8:28 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 8:51
Andraw11124-Jul-12 8:51 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 9:07
enhzflep24-Jul-12 9:07 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 9:45
Andraw11124-Jul-12 9:45 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 9:58
enhzflep24-Jul-12 9:58 
AnswerRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Software_Developer24-Jul-12 10:04
Software_Developer24-Jul-12 10:04 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Richard MacCutchan24-Jul-12 11:09
mveRichard MacCutchan24-Jul-12 11:09 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Software_Developer24-Jul-12 23:37
Software_Developer24-Jul-12 23:37 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 5:31
Andraw11125-Jul-12 5:31 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Software_Developer25-Jul-12 6:49
Software_Developer25-Jul-12 6:49 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 9:51
Andraw11125-Jul-12 9:51 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 10:28
Andraw11125-Jul-12 10:28 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann25-Jul-12 7:23
Charles Oppermann25-Jul-12 7:23 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 9:55
Andraw11125-Jul-12 9:55 
SuggestionRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann26-Jul-12 3:39
Charles Oppermann26-Jul-12 3:39 

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.