Click here to Skip to main content
15,895,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionShellExecute Pin
john563222-Oct-10 1:57
john563222-Oct-10 1:57 
AnswerRe: ShellExecute Pin
Nish Nishant22-Oct-10 2:05
sitebuilderNish Nishant22-Oct-10 2:05 
AnswerRe: ShellExecute Pin
Sauro Viti22-Oct-10 2:09
professionalSauro Viti22-Oct-10 2:09 
GeneralRe: ShellExecute Pin
john563222-Oct-10 2:30
john563222-Oct-10 2:30 
GeneralRe: ShellExecute Pin
David Crow22-Oct-10 2:52
David Crow22-Oct-10 2:52 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 3:07
Code-o-mat22-Oct-10 3:07 
GeneralRe: ShellExecute Pin
john563222-Oct-10 3:12
john563222-Oct-10 3:12 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 3:20
Code-o-mat22-Oct-10 3:20 
Does szUpdateFilePath contain spaces perhaps? If yes, enclose it with quotation marks, e.g.:
Cstring cmdStr = _T("-x \"") + szUpdateFilePath + _T("\"");


Also, try this:
CString exec = szUnZipExePath + _T(" -x ") + szUpdateFilePath;
::ShellExecute(NULL, _T("open"), exec,NULL , NULL, SW_SHOW);
and see if it changes anything or not.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world.
Fry: But this is HDTV. It's got better resolution than the real world <

GeneralRe: ShellExecute Pin
john563222-Oct-10 3:57
john563222-Oct-10 3:57 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 4:01
Code-o-mat22-Oct-10 4:01 
GeneralRe: ShellExecute Pin
john563222-Oct-10 4:03
john563222-Oct-10 4:03 
GeneralRe: ShellExecute Pin
Code-o-mat22-Oct-10 4:11
Code-o-mat22-Oct-10 4:11 
GeneralRe: ShellExecute Pin
john563222-Oct-10 5:46
john563222-Oct-10 5:46 
GeneralRe: ShellExecute [modified] Pin
Code-o-mat22-Oct-10 7:42
Code-o-mat22-Oct-10 7:42 
AnswerRe: ShellExecute Pin
GAJERA22-Oct-10 4:33
GAJERA22-Oct-10 4:33 
QuestionFailed to play .mpg file with directshow Pin
Chesnokov Yuriy21-Oct-10 22:53
professionalChesnokov Yuriy21-Oct-10 22:53 
AnswerRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 1:07
professionalSauro Viti22-Oct-10 1:07 
QuestionRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 1:51
professionalChesnokov Yuriy22-Oct-10 1:51 
AnswerRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:01
professionalSauro Viti22-Oct-10 2:01 
QuestionRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:05
professionalChesnokov Yuriy22-Oct-10 2:05 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:03
professionalChesnokov Yuriy22-Oct-10 2:03 
GeneralRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:17
professionalSauro Viti22-Oct-10 2:17 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:22
professionalChesnokov Yuriy22-Oct-10 2:22 
GeneralRe: Failed to play .mpg file with directshow Pin
Sauro Viti22-Oct-10 2:30
professionalSauro Viti22-Oct-10 2:30 
AnswerRe: Failed to play .mpg file with directshow Pin
Chesnokov Yuriy22-Oct-10 2:52
professionalChesnokov Yuriy22-Oct-10 2:52 

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.