Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Char * w/ escaped character to char Pin
Abin9-Sep-03 13:55
Abin9-Sep-03 13:55 
GeneralDirectX video capture without audio Pin
cje9-Sep-03 12:12
cje9-Sep-03 12:12 
GeneralRe: DirectX video capture without audio Pin
Andrew Walker9-Sep-03 12:21
Andrew Walker9-Sep-03 12:21 
GeneralRe: DirectX video capture without audio Pin
cje9-Sep-03 12:47
cje9-Sep-03 12:47 
GeneralOverriding CMDIChildWnd::OnCreateClient Pin
Ori K9-Sep-03 11:49
Ori K9-Sep-03 11:49 
Generalvalues for MFC function in VC++ Pin
extraeye9-Sep-03 11:45
extraeye9-Sep-03 11:45 
QuestionWhat function am I? Pin
krauskim9-Sep-03 11:19
krauskim9-Sep-03 11:19 
AnswerRe: What function am I? Pin
Alvaro Mendez9-Sep-03 11:38
Alvaro Mendez9-Sep-03 11:38 
Dunno about a way to tell the function name.

As far as identifying the file and line, one solution I've used is macros. In fact, it's probably the only solution. Something like this may do it:

#define RAISE_ERROR(description) \
  do { \
    CString strError; \
    strError.Format("Error %s at %s(%d)", description, __FILE__, __LINE__); \
    LogError(strError); \
    throw CMyException(strError); \
  } while (0)


Regards,
Alvaro


Hey! It compiles! Ship it.
AnswerRe: What function am I? Pin
Andrew Walker9-Sep-03 12:24
Andrew Walker9-Sep-03 12:24 
GeneralRe: What function am I? Pin
krauskim9-Sep-03 14:37
krauskim9-Sep-03 14:37 
GeneralRe: What function am I? Pin
Andrew Walker10-Sep-03 14:12
Andrew Walker10-Sep-03 14:12 
AnswerRe: What function am I? Pin
parths9-Sep-03 16:05
parths9-Sep-03 16:05 
GeneralObtaining the ascii value of a character Pin
elchip9-Sep-03 11:02
elchip9-Sep-03 11:02 
GeneralRe: Obtaining the ascii value of a character Pin
Michael Dunn9-Sep-03 11:15
sitebuilderMichael Dunn9-Sep-03 11:15 
GeneralRe: Obtaining the ascii value of a character Pin
Jonathan de Halleux9-Sep-03 11:15
Jonathan de Halleux9-Sep-03 11:15 
GeneralRe: Obtaining the ascii value of a character Pin
Jagadeesh VN9-Sep-03 22:44
Jagadeesh VN9-Sep-03 22:44 
Generalerror using "sick" text file with character > 255 Pin
Jonathan de Halleux9-Sep-03 10:55
Jonathan de Halleux9-Sep-03 10:55 
GeneralRe: error using "sick" text file with character > 255 Pin
Michael Dunn9-Sep-03 11:17
sitebuilderMichael Dunn9-Sep-03 11:17 
GeneralRe: error using "sick" text file with character > 255 Pin
Jonathan de Halleux9-Sep-03 11:23
Jonathan de Halleux9-Sep-03 11:23 
GeneralRe: error using "sick" text file with character > 255 Pin
Jonathan de Halleux9-Sep-03 12:17
Jonathan de Halleux9-Sep-03 12:17 
GeneralRe: C++ Question. Pin
ZoogieZork9-Sep-03 10:52
ZoogieZork9-Sep-03 10:52 
GeneralRe: C++ Question. Pin
WREY9-Sep-03 10:56
WREY9-Sep-03 10:56 
Generalget tape drive info using vc++ Pin
Anonymous9-Sep-03 10:43
Anonymous9-Sep-03 10:43 
Generalmemory allocation issues Pin
tguzella9-Sep-03 9:25
tguzella9-Sep-03 9:25 
GeneralRe: memory allocation issues Pin
David Crow9-Sep-03 9:53
David Crow9-Sep-03 9:53 

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.