Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 3:16
mveRichard MacCutchan12-Feb-10 3:16 
GeneralRe: MFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 3:51
deostroll12-Feb-10 3:51 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 4:01
mveRichard MacCutchan12-Feb-10 4:01 
GeneralRe: MFC: calling a menu item from another menu item Pin
deostroll12-Feb-10 4:18
deostroll12-Feb-10 4:18 
GeneralRe: MFC: calling a menu item from another menu item [modified] Pin
Richard MacCutchan12-Feb-10 4:32
mveRichard MacCutchan12-Feb-10 4:32 
GeneralRe: MFC: calling a menu item from another menu item Pin
David Crow12-Feb-10 7:06
David Crow12-Feb-10 7:06 
GeneralRe: MFC: calling a menu item from another menu item Pin
Richard MacCutchan12-Feb-10 9:11
mveRichard MacCutchan12-Feb-10 9:11 
QuestionIs it possible to open file twice? Pin
Member 439977111-Feb-10 23:13
Member 439977111-Feb-10 23:13 
Hi All,

Is it possible to open the file twice? I am using CStdioFile, i created two objects of type CStdioFile and assigning the same file for both the objects. one file opened for writing(modeReadWrite) the data and the other file opened for reading(modeRead) the data. In this case my application is crashing. please give me some solution.

CStdioFile obj1;
CStdioFile obj2;


obj1.Open("file1.txt", CStdioFile::modeReadWrite);
.....
.....
.....
obj2.open("file1.txt", CStdioFile::modeRead);
.....
.....
obj2.close();
....
...
obj1.close();


Thanks in advance!


Regards,
Anil
AnswerRe: Is it possible to open file twice? Pin
Cedric Moonen11-Feb-10 23:24
Cedric Moonen11-Feb-10 23:24 
GeneralRe: Is it possible to open file twice? Pin
Member 439977111-Feb-10 23:35
Member 439977111-Feb-10 23:35 
QuestionRe: Is it possible to open file twice? Pin
David Crow12-Feb-10 3:12
David Crow12-Feb-10 3:12 
AnswerRe: Is it possible to open file twice? Pin
Rozis12-Feb-10 11:25
Rozis12-Feb-10 11:25 
GeneralRe: Is it possible to open file twice? Pin
Rozis12-Feb-10 11:32
Rozis12-Feb-10 11:32 
QuestionForm Background color change - Reg. Pin
Paulraj G11-Feb-10 23:00
Paulraj G11-Feb-10 23:00 
AnswerRe: Form Background color change - Reg. Pin
Richard MacCutchan11-Feb-10 23:30
mveRichard MacCutchan11-Feb-10 23:30 
GeneralRe: Form Background color change - Reg. Pin
Paulraj G11-Feb-10 23:40
Paulraj G11-Feb-10 23:40 
GeneralRe: Form Background color change - Reg. Pin
Richard MacCutchan12-Feb-10 0:13
mveRichard MacCutchan12-Feb-10 0:13 
QuestionSHGetFolderPath(), CoCreateInstance() functions fails on Windows 2000. Pin
Abhijit D. Babar11-Feb-10 22:10
Abhijit D. Babar11-Feb-10 22:10 
AnswerRe: SHGetFolderPath(), CoCreateInstance() functions fails on Windows 2000. Pin
CPallini11-Feb-10 22:31
mveCPallini11-Feb-10 22:31 
GeneralRe: SHGetFolderPath(), CoCreateInstance() functions fails on Windows 2000. Pin
Abhijit D. Babar11-Feb-10 22:36
Abhijit D. Babar11-Feb-10 22:36 
GeneralRe: SHGetFolderPath(), CoCreateInstance() functions fails on Windows 2000. Pin
CPallini11-Feb-10 23:09
mveCPallini11-Feb-10 23:09 
QuestionHide Dialog Pin
john563211-Feb-10 20:10
john563211-Feb-10 20:10 
AnswerRe: Hide Dialog Pin
KarstenK11-Feb-10 21:06
mveKarstenK11-Feb-10 21:06 
GeneralRe: Hide Dialog Pin
Rajesh R Subramanian11-Feb-10 23:02
professionalRajesh R Subramanian11-Feb-10 23:02 
AnswerRe: Hide Dialog Pin
stebich11-Feb-10 22:54
professionalstebich11-Feb-10 22:54 

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.