Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Color For List View Control Column Pin
Naveen11-Mar-10 18:14
Naveen11-Mar-10 18:14 
QuestionMFC Drag drop Target line Pin
RakeshManohar11-Mar-10 16:40
RakeshManohar11-Mar-10 16:40 
AnswerRe: MFC Drag drop Target line Pin
Iain Clarke, Warrior Programmer11-Mar-10 22:06
Iain Clarke, Warrior Programmer11-Mar-10 22:06 
QuestionWhich licensing software to use. Pin
wattsupdoc11-Mar-10 16:31
wattsupdoc11-Mar-10 16:31 
AnswerRe: Which licensing software to use. Pin
wattsupdoc12-Mar-10 17:10
wattsupdoc12-Mar-10 17:10 
QuestionCreating File at startup error Pin
Zacory11-Mar-10 16:22
Zacory11-Mar-10 16:22 
AnswerRe: Creating File at startup error Pin
Stephen Hewitt11-Mar-10 16:36
Stephen Hewitt11-Mar-10 16:36 
GeneralRe: Creating File at startup error Pin
Zacory11-Mar-10 16:56
Zacory11-Mar-10 16:56 
I'm not too familiar with exceptions, I was checking return codes for any error messages. After a quick google though:

file.exceptions ( fstream::eofbit | fstream::failbit | fstream::badbit );
try
{
    file.open("test.txt", ios::out);
    file << "Test";
    file.close();
}
catch (fstream::failure e)
{
    MessageBox(NULL, "File Failed", "Error!", MB_OK);
}


I still don't receive an error though, and no file when windows starts up, but it does create it if I open it manually
AnswerRe: Creating File at startup error [modified] Pin
Mohan Ramachandra11-Mar-10 18:36
Mohan Ramachandra11-Mar-10 18:36 
GeneralRe: Creating File at startup error Pin
Zacory11-Mar-10 19:10
Zacory11-Mar-10 19:10 
GeneralRe: Creating File at startup error Pin
Mohan Ramachandra11-Mar-10 19:19
Mohan Ramachandra11-Mar-10 19:19 
QuestionHow to check memory how many? Pin
Patrick Tang11-Mar-10 16:05
Patrick Tang11-Mar-10 16:05 
GeneralRe: How to check memory how many? Pin
chevu11-Mar-10 17:23
chevu11-Mar-10 17:23 
GeneralRe: How to check memory how many? Pin
Patrick Tang11-Mar-10 20:39
Patrick Tang11-Mar-10 20:39 
GeneralRe: How to check memory how many? Pin
Richard MacCutchan11-Mar-10 21:52
mveRichard MacCutchan11-Mar-10 21:52 
Questionconfused MFC CREATING CLASS AND MESSASE HANDLE Pin
acce5511-Mar-10 14:56
acce5511-Mar-10 14:56 
AnswerRe: confused MFC CREATING CLASS AND MESSASE HANDLE Pin
chevu11-Mar-10 17:27
chevu11-Mar-10 17:27 
AnswerRe: confused MFC CREATING CLASS AND MESSASE HANDLE Pin
David Crow12-Mar-10 3:05
David Crow12-Mar-10 3:05 
Questionbuild error while compiling log4cpp using visual studio .net 2003 Pin
deardyg11-Mar-10 12:33
deardyg11-Mar-10 12:33 
AnswerRe: build error while compiling log4cpp using visual studio .net 2003 Pin
Stuart Dootson11-Mar-10 16:26
professionalStuart Dootson11-Mar-10 16:26 
QuestionHello how should i use the this pointer if it is a function param as void *this Pin
nah133711-Mar-10 11:16
nah133711-Mar-10 11:16 
AnswerRe: Hello how should i use the this pointer if it is a function param as void *this Pin
Jonathan Davies11-Mar-10 12:21
Jonathan Davies11-Mar-10 12:21 
AnswerRe: Hello how should i use the this pointer if it is a function param as void *this Pin
zhq0000111-Mar-10 14:25
zhq0000111-Mar-10 14:25 
GeneralRe: Hello how should i use the this pointer if it is a function param as void *this Pin
Jonathan Davies12-Mar-10 0:01
Jonathan Davies12-Mar-10 0:01 
AnswerRe: Hello how should i use the this pointer if it is a function param as void *this Pin
Stephen Hewitt11-Mar-10 14:41
Stephen Hewitt11-Mar-10 14:41 

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.