Click here to Skip to main content
15,172,251 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Global Event in C++ Pin
Member 142210417-Jun-19 0:15
MemberMember 142210417-Jun-19 0:15 
AnswerRe: Global Event in C++ Pin
CPallini5-Jun-19 23:50
mveCPallini5-Jun-19 23:50 
GeneralRe: Global Event in C++ Pin
Member 142210416-Jun-19 0:45
MemberMember 142210416-Jun-19 0:45 
GeneralRe: Global Event in C++ Pin
CPallini6-Jun-19 0:54
mveCPallini6-Jun-19 0:54 
GeneralRe: Global Event in C++ Pin
Member 142210416-Jun-19 0:58
MemberMember 142210416-Jun-19 0:58 
GeneralRe: Global Event in C++ Pin
CPallini6-Jun-19 1:09
mveCPallini6-Jun-19 1:09 
GeneralRe: Global Event in C++ Pin
Stefan_Lang6-Jun-19 22:56
mveStefan_Lang6-Jun-19 22:56 
QuestionShellExecute open Pin
_Flaviu4-Jun-19 23:28
Member_Flaviu4-Jun-19 23:28 
I am trying to open any kind of file using

C++
ShellExecute(NULL, _T("open"), sPath + _T("\\") + sText, NULL, NULL, SW_SHOWNORMAL);


and is working well, but there a little issue: when I am trying to open an image file, I get always the "How do you want to open this file" dialog, everytime … why ? Of course, when I am trying to open this kind of image file from y windows explorer, is open with my default program, Windows Photo Viewer.

Is there any kind of parameters to put on ShellExecute ? Please note that I use this for ever kind of file, including exe files.
AnswerRe: ShellExecute open Pin
Richard MacCutchan5-Jun-19 0:01
mveRichard MacCutchan5-Jun-19 0:01 
GeneralRe: ShellExecute open Pin
_Flaviu5-Jun-19 0:44
Member_Flaviu5-Jun-19 0:44 
GeneralRe: ShellExecute open Pin
Richard MacCutchan5-Jun-19 4:38
mveRichard MacCutchan5-Jun-19 4:38 
GeneralRe: ShellExecute open Pin
Richard MacCutchan5-Jun-19 22:05
mveRichard MacCutchan5-Jun-19 22:05 
GeneralRe: ShellExecute open Pin
_Flaviu6-Jun-19 1:24
Member_Flaviu6-Jun-19 1:24 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 2:55
mveRichard MacCutchan6-Jun-19 2:55 
GeneralRe: ShellExecute open Pin
_Flaviu6-Jun-19 3:52
Member_Flaviu6-Jun-19 3:52 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 3:56
mveRichard MacCutchan6-Jun-19 3:56 
GeneralRe: ShellExecute open Pin
_Flaviu6-Jun-19 7:45
Member_Flaviu6-Jun-19 7:45 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 4:01
mveRichard MacCutchan6-Jun-19 4:01 
AnswerRe: ShellExecute open Pin
Eddy Vluggen5-Jun-19 2:10
professionalEddy Vluggen5-Jun-19 2:10 
GeneralRe: ShellExecute open Pin
_Flaviu5-Jun-19 20:52
Member_Flaviu5-Jun-19 20:52 
AnswerRe: ShellExecute open Pin
jschell8-Jun-19 5:42
Memberjschell8-Jun-19 5:42 
GeneralRe: ShellExecute open Pin
_Flaviu10-Jun-19 21:47
Member_Flaviu10-Jun-19 21:47 
GeneralRe: ShellExecute open Pin
Richard MacCutchan10-Jun-19 23:39
mveRichard MacCutchan10-Jun-19 23:39 
GeneralRe: ShellExecute open Pin
jschell15-Jun-19 4:14
Memberjschell15-Jun-19 4:14 
QuestionDevice Running Windows CE 6.0 Pin
Member 142210414-Jun-19 18:08
MemberMember 142210414-Jun-19 18: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.