Click here to Skip to main content
15,921,210 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shell extension query (I think) Pin
Roger Stewart9-Sep-02 6:20
professionalRoger Stewart9-Sep-02 6:20 
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 
The code looks like this (I am at work, not at home and doesn't have my source code near me)
===========================
CStdioFile f;
char pFileName[] = "myfile.txt";
char buff[] = "test string";

f.Open( pFileName, CFile::modeCreate | CFile::modeWrite | CFile::shareDenyWrite | CFile::typeText); // tested with CFile::shareDenyNone instead of CFile::shareDenyWrite but it doesn't correct
f.WriteString(buff); // and more writings
f.Close; // supposed to close file and make it available
WinExec("Notepad.exe myfile.txt",SW_SHOW)
===========================
The same WinExec instruction put at the beginning of my routine works fine if I launch it a second time and the content of the file created during the 1st pass is correctly displayed ...
Hope it is a little bit more clear....

GeneralRe: WinExec("Notepad.exe " +fileName,SW_SHOW doesn't work ) Pin
adamUK10-Sep-02 11:29
adamUK10-Sep-02 11:29 
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 

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.