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

C / C++ / MFC

 
AnswerRe: let rename file just after it creation in explorer Pin
David Crow5-Oct-09 4:07
David Crow5-Oct-09 4:07 
GeneralRe: let rename file just after it creation in explorer Pin
MrKBA5-Oct-09 6:23
MrKBA5-Oct-09 6:23 
QuestionChanging the color of a button [modified] Pin
ratprita4-Oct-09 22:44
ratprita4-Oct-09 22:44 
AnswerRe: Changing the color of a button Pin
CPallini4-Oct-09 23:03
mveCPallini4-Oct-09 23:03 
GeneralRe: Changing the color of a button Pin
ratprita4-Oct-09 23:44
ratprita4-Oct-09 23:44 
GeneralRe: Changing the color of a button Pin
CPallini5-Oct-09 0:18
mveCPallini5-Oct-09 0:18 
AnswerRe: Changing the color of a button Pin
David Crow5-Oct-09 4:09
David Crow5-Oct-09 4:09 
QuestionEnigma with ShellExecute ? [modified] Pin
Souldrift4-Oct-09 22:33
Souldrift4-Oct-09 22:33 
Hi there,

I got the strangest problem. I want to start an executable with ShellExecute(). Which usually works fine, but ...

(this is the code)

[edit]
char buf[512]
size = GetCurrentDirectoryA( 512, buf ); // get absolute path
[/edit]

// version 1
char callString[1024];
sprintf_s( callString, "%s\\%s", buf, file.c_str() );
// version 2
char buf[1024];
sprintf_s( buf,  "c:\\Users\\zwatschek\\work\\svn\\incubation\\ttsServer\\Data\\ttsWatchdog.exe" ); 

char id[32];
sprintf_s( id, "%d", pid );

long res=long(ShellExecute(0, "open", callString, id, 0, SW_SHOWNORMAL)); 


... with version 2 things work fine, with version 1 I get ERROR_FILE_NOT_FOUND.

callString = c:\Users\zwatschek\work\svn\incubation\ttsServer\Data\ttsWatchdog.exe
buf = c:\Users\zwatschek\work\svn\incubation\ttsServer\Data\ttsWatchdog.exe

(I copied those strings right out from the variable watch)

Does anyone have an idea on this?

Souldrift

modified on Monday, October 5, 2009 5:00 AM

AnswerRe: Enigma with ShellExecute ? Pin
CPallini4-Oct-09 22:58
mveCPallini4-Oct-09 22:58 
GeneralRe: Enigma with ShellExecute ? [modified] Pin
Souldrift4-Oct-09 23:10
Souldrift4-Oct-09 23:10 
GeneralRe: Enigma with ShellExecute ? Pin
CPallini4-Oct-09 23:37
mveCPallini4-Oct-09 23:37 
GeneralRe: Enigma with ShellExecute ? Pin
Souldrift4-Oct-09 23:42
Souldrift4-Oct-09 23:42 
GeneralRe: Enigma with ShellExecute ? Pin
Souldrift5-Oct-09 1:24
Souldrift5-Oct-09 1:24 
QuestionCan i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:11
Le@rner4-Oct-09 21:11 
AnswerRe: Can i change window title of SHBrowseForFolder Function. Pin
DeepakMega4-Oct-09 21:34
DeepakMega4-Oct-09 21:34 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:39
Le@rner4-Oct-09 21:39 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 21:42
Le@rner4-Oct-09 21:42 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
CPallini4-Oct-09 22:05
mveCPallini4-Oct-09 22:05 
AnswerRe: Can i change window title of SHBrowseForFolder Function. Pin
Iain Clarke, Warrior Programmer4-Oct-09 22:04
Iain Clarke, Warrior Programmer4-Oct-09 22:04 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 22:15
Le@rner4-Oct-09 22:15 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Le@rner4-Oct-09 22:21
Le@rner4-Oct-09 22:21 
GeneralRe: Can i change window title of SHBrowseForFolder Function. Pin
Stuart Dootson5-Oct-09 0:11
professionalStuart Dootson5-Oct-09 0:11 
QuestionWrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 20:51
zeego4-Oct-09 20:51 
AnswerRe: Wrong Output, Cant catch the mistake (DFS) Pin
DeepakMega4-Oct-09 21:26
DeepakMega4-Oct-09 21:26 
GeneralRe: Wrong Output, Cant catch the mistake (DFS) Pin
zeego4-Oct-09 22:30
zeego4-Oct-09 22:30 

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.