Click here to Skip to main content
12,689,794 members (25,276 online)

C / C++ / MFC

 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 9:28
memberenhzflep24-Jul-12 9:28 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 9:51
memberAndraw11124-Jul-12 9:51 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 10:07
memberenhzflep24-Jul-12 10:07 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11124-Jul-12 10:45
memberAndraw11124-Jul-12 10:45 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
enhzflep24-Jul-12 10:58
memberenhzflep24-Jul-12 10:58 
AnswerRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
TopCoder2324-Jul-12 11:04
memberTopCoder2324-Jul-12 11:04 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Richard MacCutchan24-Jul-12 12:09
mvpRichard MacCutchan24-Jul-12 12:09 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
TopCoder2325-Jul-12 0:37
memberTopCoder2325-Jul-12 0:37 
True, Windows 7 UAC (User Account Control) screws things up.

http://en.wikipedia.org/wiki/User_Account_Control[^] says this about ShellExecute:

ShellExecute(hwnd, "runas", "C:\\Windows\\Notepad.exe", 0, 0, SW_SHOWNORMAL);


In the absence of a specific directive stating what privileges the application requests, UAC will apply heuristics, to determine whether or not the application needs administrator privileges. For example, if UAC detects that the application is a setup program, from clues such as the filename, versioning fields, or the presence of certain sequences of bytes within the executable, in the absence of a manifest it will assume that the application needs administrator privileges.
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 6:31
memberAndraw11125-Jul-12 6:31 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
TopCoder2325-Jul-12 7:49
memberTopCoder2325-Jul-12 7:49 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 10:51
memberAndraw11125-Jul-12 10:51 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 11:28
memberAndraw11125-Jul-12 11:28 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann25-Jul-12 8:23
memberCharles Oppermann25-Jul-12 8:23 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11125-Jul-12 10:55
memberAndraw11125-Jul-12 10:55 
SuggestionRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann26-Jul-12 4:39
memberCharles Oppermann26-Jul-12 4:39 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11126-Jul-12 5:35
memberAndraw11126-Jul-12 5:35 
SuggestionRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann26-Jul-12 7:04
memberCharles Oppermann26-Jul-12 7:04 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11126-Jul-12 7:56
memberAndraw11126-Jul-12 7:56 
GeneralRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Andraw11126-Jul-12 6:54
memberAndraw11126-Jul-12 6:54 
SuggestionRe: ShellExecute() launch .CHM and PDF file not work in Window 7 Pin
Charles Oppermann25-Jul-12 7:59
memberCharles Oppermann25-Jul-12 7:59 
QuestionHow to test firewire communication using C program ? Pin
Code_Demon_198524-Jul-12 5:58
memberCode_Demon_198524-Jul-12 5:58 
GeneralRe: How to test firewire communication using C program ? Pin
CPallini24-Jul-12 7:35
mvpCPallini24-Jul-12 7:35 
QuestionHow to Undo drawing a line in MFC.? Pin
mbatra3124-Jul-12 2:02
membermbatra3124-Jul-12 2:02 
AnswerRe: How to Undo drawing a line in MFC.? Pin
Eugen Podsypalnikov24-Jul-12 4:14
memberEugen Podsypalnikov24-Jul-12 4:14 
AnswerRe: How to Undo drawing a line in MFC.? Pin
Alan Balkany24-Jul-12 5:02
memberAlan Balkany24-Jul-12 5:02 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.170113.4 | Last Updated 16 Jan 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid