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

C / C++ / MFC

 
GeneralRe: Global Variable in all the files Pin
<color>Aljechin 12-Jan-06 17:54
<color>Aljechin 12-Jan-06 17:54 
GeneralRe: Global Variable in all the files Pin
Blake Miller13-Jan-06 7:03
Blake Miller13-Jan-06 7:03 
GeneralThanks: Unexpected end of file while looking for precompiled header directive Pin
Sarvan AL12-Jan-06 0:36
Sarvan AL12-Jan-06 0:36 
QuestionCommunication Between EXEs Pin
rider cool11-Jan-06 21:48
rider cool11-Jan-06 21:48 
AnswerRe: Communication Between EXEs Pin
PJ Arends11-Jan-06 21:58
professionalPJ Arends11-Jan-06 21:58 
QuestionCreate Font to match Dialogue Box Pin
LittleYellowBird11-Jan-06 21:17
LittleYellowBird11-Jan-06 21:17 
AnswerRe: Create Font to match Dialogue Box Pin
Owner drawn11-Jan-06 21:51
Owner drawn11-Jan-06 21:51 
GeneralRe: Create Font to match Dialogue Box Pin
LittleYellowBird12-Jan-06 4:32
LittleYellowBird12-Jan-06 4:32 
QuestionFunction as argument Pin
kk.tvm11-Jan-06 20:35
kk.tvm11-Jan-06 20:35 
AnswerRe: Function as argument Pin
Owner drawn11-Jan-06 20:44
Owner drawn11-Jan-06 20:44 
AnswerRe: Function as argument Pin
Zdeslav Vojkovic11-Jan-06 20:47
Zdeslav Vojkovic11-Jan-06 20:47 
AnswerRe: Function as argument Pin
Cedric Moonen11-Jan-06 20:48
Cedric Moonen11-Jan-06 20:48 
GeneralRe: Function as argument Pin
Zdeslav Vojkovic11-Jan-06 21:06
Zdeslav Vojkovic11-Jan-06 21:06 
GeneralRe: Function as argument Pin
Cedric Moonen11-Jan-06 21:13
Cedric Moonen11-Jan-06 21:13 
GeneralRe: Function as argument Pin
kk.tvm11-Jan-06 20:56
kk.tvm11-Jan-06 20:56 
QuestionSticky Windows? Pin
S Douglas11-Jan-06 20:25
professionalS Douglas11-Jan-06 20:25 
AnswerRe: Sticky Windows? Pin
Rage11-Jan-06 22:34
professionalRage11-Jan-06 22:34 
GeneralRe: Sticky Windows? Pin
S Douglas11-Jan-06 22:43
professionalS Douglas11-Jan-06 22:43 
QuestionDBF file usage Pin
<color>Aljechin 11-Jan-06 19:55
<color>Aljechin 11-Jan-06 19:55 
AnswerNo Pin
__yb13-Jan-06 12:15
__yb13-Jan-06 12:15 
QuestionCan a BHO do this? Pin
Chintoo72311-Jan-06 19:18
Chintoo72311-Jan-06 19:18 
AnswerRe: Can a BHO do this? Pin
__yb13-Jan-06 12:18
__yb13-Jan-06 12:18 
Questiontry/catch - getting line number Pin
Chintoo72311-Jan-06 19:09
Chintoo72311-Jan-06 19:09 
AnswerRe: try/catch - getting line number Pin
__yb13-Jan-06 12:22
__yb13-Jan-06 12:22 
AnswerRe: try/catch - getting line number Pin
Shraddhan25-Jan-06 13:09
Shraddhan25-Jan-06 13:09 
What I do is to buld a string containing the value of __LINE__ and pass this to a global ThrowError function which packages this into an object which throw can throw.

For example:

class CMyError : public CException {
public:
const char * Message;
};

and somewhere in the code:

static CString s;
s.Format("File %s, line %d\nOverflow in addition", THIS_FILE, __LINE__);
ThrowError(s);

where ThrowError puts its argument into Message in an instance of CMyError and throws the CMyError. So basically I can send any information I want to via a throw.

Shraddhan

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.