Click here to Skip to main content
15,914,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Prototype mismatch Pin
Maxwell Chen22-May-06 23:40
Maxwell Chen22-May-06 23:40 
GeneralRe: Prototype mismatch Pin
Laxman Auti22-May-06 23:42
Laxman Auti22-May-06 23:42 
GeneralRe: Prototype mismatch Pin
Maxwell Chen22-May-06 23:44
Maxwell Chen22-May-06 23:44 
AnswerRe: Prototype mismatch Pin
Member 227165523-May-06 4:35
Member 227165523-May-06 4:35 
GeneralRe: Prototype mismatch Pin
Member 227165523-May-06 20:02
Member 227165523-May-06 20:02 
AnswerRe: Prototype mismatch Pin
Member 227165523-May-06 20:03
Member 227165523-May-06 20:03 
QuestionFile Opening problem Pin
VinayCool22-May-06 21:24
VinayCool22-May-06 21:24 
AnswerRe: File Opening problem [modified] Pin
Stephen Hewitt22-May-06 21:28
Stephen Hewitt22-May-06 21:28 
vinaycool wrote:
ShellExecute(NULL, "open", "str" ,NULL, NULL, SW_SHOWNORMAL);

 
Use this instead:
ShellExecute(NULL, "open", str, NULL, NULL, SW_SHOWNORMAL);


Note I removed the quotes.

Steve

PS: Why use a char at all? You can replace the "str" variable with the CString variable and it will work, be simpler and also safer.
GeneralRe: File Opening problem [modified] Pin
VinayCool22-May-06 21:33
VinayCool22-May-06 21:33 
GeneralRe: File Opening problem [modified] Pin
Saday Sarkar23-May-06 2:36
Saday Sarkar23-May-06 2:36 
GeneralRe: File Opening problem [modified] Pin
Hamid_RT22-May-06 21:37
Hamid_RT22-May-06 21:37 
GeneralRe: File Opening problem [modified] Pin
Stephen Hewitt22-May-06 21:38
Stephen Hewitt22-May-06 21:38 
GeneralRe: File Opening problem [modified] Pin
Hamid_RT22-May-06 22:03
Hamid_RT22-May-06 22:03 
GeneralRe: File Opening problem [modified] Pin
Laxman Auti22-May-06 22:03
Laxman Auti22-May-06 22:03 
GeneralRe: File Opening problem [modified] Pin
VinayCool22-May-06 22:14
VinayCool22-May-06 22:14 
AnswerRe: File Opening problem Pin
Hamid_RT22-May-06 21:33
Hamid_RT22-May-06 21:33 
GeneralRe: File Opening problem [modified] Pin
Stephen Hewitt22-May-06 21:37
Stephen Hewitt22-May-06 21:37 
GeneralRe: File Opening problem [modified] Pin
Hamid_RT22-May-06 21:50
Hamid_RT22-May-06 21:50 
GeneralRe: File Opening problem Pin
VinayCool22-May-06 21:38
VinayCool22-May-06 21:38 
GeneralRe: File Opening problem Pin
Stephen Hewitt22-May-06 21:47
Stephen Hewitt22-May-06 21:47 
GeneralRe: File Opening problem Pin
VinayCool22-May-06 21:55
VinayCool22-May-06 21:55 
GeneralRe: File Opening problem Pin
Hamid_RT22-May-06 21:57
Hamid_RT22-May-06 21:57 
GeneralRe: File Opening problem Pin
VinayCool22-May-06 22:23
VinayCool22-May-06 22:23 
GeneralRe: File Opening problem Pin
Hamid_RT22-May-06 22:32
Hamid_RT22-May-06 22:32 
GeneralRe: File Opening problem Pin
VinayCool22-May-06 22:56
VinayCool22-May-06 22:56 

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.