Click here to Skip to main content
15,887,346 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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

GeneralRe: try/catch - getting line number Pin
Chintoo72325-Jan-06 15:18
Chintoo72325-Jan-06 15:18 
GeneralRe: try/catch - getting line number Pin
Shraddhan25-Jan-06 15:38
Shraddhan25-Jan-06 15:38 
QuestionVisual C++ Shortcut Keys Pin
romuzu11-Jan-06 18:59
romuzu11-Jan-06 18:59 
AnswerRe: Visual C++ Shortcut Keys Pin
Owner drawn11-Jan-06 19:08
Owner drawn11-Jan-06 19:08 
Questionhow to capture the DocumentBeforePrint Event in my ActiveX of Word written in VC? Pin
sharkmouse11-Jan-06 18:43
sharkmouse11-Jan-06 18:43 
QuestionTrouble in MFC CFont Pin
LaHaHa11-Jan-06 18:32
LaHaHa11-Jan-06 18:32 
AnswerRe: Trouble in MFC CFont Pin
Owner drawn11-Jan-06 18:40
Owner drawn11-Jan-06 18:40 
GeneralRe: Trouble in MFC CFont Pin
LaHaHa11-Jan-06 21:18
LaHaHa11-Jan-06 21:18 
GeneralRe: Trouble in MFC CFont Pin
Owner drawn11-Jan-06 21:24
Owner drawn11-Jan-06 21:24 
GeneralRe: Trouble in MFC CFont Pin
LaHaHa11-Jan-06 21:46
LaHaHa11-Jan-06 21:46 
QuestionGUI Pin
Aqueel11-Jan-06 17:54
Aqueel11-Jan-06 17:54 
AnswerRe: GUI Pin
Christian Graus11-Jan-06 18:08
protectorChristian Graus11-Jan-06 18:08 
AnswerRe: GUI Pin
Owner drawn11-Jan-06 18:12
Owner drawn11-Jan-06 18:12 
GeneralRe: GUI Pin
Rajesh R Subramanian11-Jan-06 19:24
professionalRajesh R Subramanian11-Jan-06 19:24 
AnswerRe: GUI Pin
ThatsAlok12-Jan-06 1:11
ThatsAlok12-Jan-06 1:11 
QuestionHow to modify the Edit control's(CEdit) context menu? Pin
Owner drawn11-Jan-06 17:33
Owner drawn11-Jan-06 17:33 
AnswerRe: How to modify the Edit control's(CEdit) context menu? Pin
Ryan Binns11-Jan-06 19:20
Ryan Binns11-Jan-06 19:20 

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.