Click here to Skip to main content
15,917,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
Qadddd9-Sep-02 0:07
Qadddd9-Sep-02 0:07 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
adamUK9-Sep-02 1:21
adamUK9-Sep-02 1:21 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
Qadddd9-Sep-02 2:45
Qadddd9-Sep-02 2:45 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
adamUK9-Sep-02 9:31
adamUK9-Sep-02 9:31 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
Carlos Antollini9-Sep-02 9:38
Carlos Antollini9-Sep-02 9:38 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
adamUK9-Sep-02 9:45
adamUK9-Sep-02 9:45 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
Qadddd10-Sep-02 7:53
Qadddd10-Sep-02 7:53 
GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
adamUK10-Sep-02 11:29
adamUK10-Sep-02 11:29 
Hmm..

Apart from changing f.Close; to f.Close(); and setting WinExec("Notepad.exe myfile.txt",SW_SHOW) to WinExec("c:\\WINNT\\Notepad.exe myfile.txt",SW_SHOW); it all works okay. It looks like one of those annoying ones that works on one PC and not the other! Frown | :(

I don't know if it is worth setting up a timer to send a WM_TIMER message and handling the message to open Notepad after about a quarter of a second or so and seeing what happens?

hope this helps. Sounds very perplexing! Eek! | :eek:

Adam.

"I spent a lot of my money on booze, birds and fast cars. The rest I just squandered"
George Best.
GeneralInstallation tool Pin
Anthony B.8-Sep-02 23:21
Anthony B.8-Sep-02 23:21 
GeneralRe: Installation tool Pin
[James Pullicino]8-Sep-02 23:35
[James Pullicino]8-Sep-02 23:35 
GeneralRe: Installation tool Pin
Jon Taylor8-Sep-02 23:38
Jon Taylor8-Sep-02 23:38 
GeneralRe: Installation tool Pin
Jawache9-Sep-02 0:08
Jawache9-Sep-02 0:08 
GeneralRe: Installation tool Pin
Alwin759-Sep-02 5:44
Alwin759-Sep-02 5:44 
GeneralFTP problem Pin
veeran8-Sep-02 23:13
veeran8-Sep-02 23:13 
GeneralRe: FTP problem Pin
Renjith Ramachandran8-Sep-02 23:51
Renjith Ramachandran8-Sep-02 23:51 
Generalhelp socket Pin
yuke8-Sep-02 23:00
yuke8-Sep-02 23:00 
GeneralRe: help socket Pin
yuke9-Sep-02 0:22
yuke9-Sep-02 0:22 
Questionhow to close the 1st mediaplayer object when opening a second ? Pin
DengJW8-Sep-02 22:38
DengJW8-Sep-02 22:38 
AnswerRe: how to close the 1st mediaplayer object when opening a second ? Pin
Rickard Andersson208-Sep-02 23:09
Rickard Andersson208-Sep-02 23:09 
GeneralRe: how to close the 1st mediaplayer object when opening a second ? Pin
DengJW8-Sep-02 23:29
DengJW8-Sep-02 23:29 
QuestionHow to map pixels to dialog unit Pin
Anonymous8-Sep-02 21:39
Anonymous8-Sep-02 21:39 
AnswerRe: How to map pixels to dialog unit Pin
adamUK8-Sep-02 22:01
adamUK8-Sep-02 22:01 
GeneralExceptions WTF Pin
Rickard Andersson208-Sep-02 21:32
Rickard Andersson208-Sep-02 21:32 
GeneralRe: Exceptions WTF Pin
Joaquín M López Muñoz8-Sep-02 22:37
Joaquín M López Muñoz8-Sep-02 22:37 
GeneralRe: Exceptions WTF Pin
Rickard Andersson208-Sep-02 23:05
Rickard Andersson208-Sep-02 23:05 

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.