Click here to Skip to main content
14,326,100 members

C / C++ / MFC

 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 1:55
protectorRichard MacCutchan6-Jun-19 1:55 
GeneralRe: ShellExecute open Pin
_Flaviu6-Jun-19 2:52
member_Flaviu6-Jun-19 2:52 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 2:56
protectorRichard MacCutchan6-Jun-19 2:56 
GeneralRe: ShellExecute open Pin
_Flaviu6-Jun-19 6:45
member_Flaviu6-Jun-19 6:45 
GeneralRe: ShellExecute open Pin
Richard MacCutchan6-Jun-19 3:01
protectorRichard MacCutchan6-Jun-19 3:01 
AnswerRe: ShellExecute open Pin
Eddy Vluggen5-Jun-19 1:10
mveEddy Vluggen5-Jun-19 1:10 
GeneralRe: ShellExecute open Pin
_Flaviu5-Jun-19 19:52
member_Flaviu5-Jun-19 19:52 
AnswerRe: ShellExecute open Pin
jschell8-Jun-19 4:42
memberjschell8-Jun-19 4:42 
_Flaviu wrote:
I am trying to open an image file


Just to clarify that statement....

The method you uses does the following.
1. Determine the type of file using the extension.
2. Look up what application the OS (windows) has recorded to open that type of file.
3. Open the file using the application.

However if 1 fails, in that the file type is not known (already specified) then it will ask you for what to open it with.

If you want to explicitly specify some application to open the file with then you need a different method.

If you want to preclude the message in the first place then you will need to write code that first detects if the type is known. However that can still be problematic because if there is a known application for type, and then the application is uninstalled (or otherwise not available) there is no assurance that the type will have been unregistered. So it might still fail to open it.
GeneralRe: ShellExecute open Pin
_Flaviu10-Jun-19 20:47
member_Flaviu10-Jun-19 20:47 
GeneralRe: ShellExecute open Pin
Richard MacCutchan10-Jun-19 22:39
protectorRichard MacCutchan10-Jun-19 22:39 
GeneralRe: ShellExecute open Pin
jschell15-Jun-19 3:14
memberjschell15-Jun-19 3:14 
QuestionDevice Running Windows CE 6.0 Pin
Member 142210414-Jun-19 17:08
memberMember 142210414-Jun-19 17:08 
AnswerRe: Device Running Windows CE 6.0 Pin
Victor Nijegorodov4-Jun-19 20:27
memberVictor Nijegorodov4-Jun-19 20:27 
AnswerRe: Device Running Windows CE 6.0 Pin
Richard MacCutchan4-Jun-19 21:04
protectorRichard MacCutchan4-Jun-19 21:04 
AnswerRe: Device Running Windows CE 6.0 Pin
CPallini4-Jun-19 22:28
mveCPallini4-Jun-19 22:28 
Questionhow i can disable key from keyboard of computer using C language Pin
Member 1447157029-May-19 6:45
memberMember 1447157029-May-19 6:45 
AnswerRe: how i can disable key from keyboard of computer using C language Pin
Victor Nijegorodov29-May-19 8:12
memberVictor Nijegorodov29-May-19 8:12 
AnswerRe: how i can disable key from keyboard of computer using C language Pin
leon de boer31-May-19 17:10
memberleon de boer31-May-19 17:10 
AnswerRe: how i can disable key from keyboard of computer using C language Pin
jschell2-Jun-19 8:42
memberjschell2-Jun-19 8:42 
AnswerRe: how i can disable key from keyboard of computer using C language Pin
David Crow3-Jun-19 9:06
memberDavid Crow3-Jun-19 9:06 
QuestionChange value to a thread Pin
_Flaviu29-May-19 3:24
member_Flaviu29-May-19 3:24 
AnswerRe: Change value to a thread Pin
Victor Nijegorodov29-May-19 5:28
memberVictor Nijegorodov29-May-19 5:28 
GeneralRe: Change value to a thread Pin
_Flaviu29-May-19 21:23
member_Flaviu29-May-19 21:23 
GeneralRe: Change value to a thread Pin
Victor Nijegorodov29-May-19 23:01
memberVictor Nijegorodov29-May-19 23:01 
GeneralRe: Change value to a thread Pin
_Flaviu29-May-19 23:23
member_Flaviu29-May-19 23:23 

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.