Click here to Skip to main content
16,006,493 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ::CreateFileMapping Pin
Paul M Watt10-Oct-02 6:21
mentorPaul M Watt10-Oct-02 6:21 
GeneralRe: ::CreateFileMapping Pin
Abin10-Oct-02 7:29
Abin10-Oct-02 7:29 
GeneralRe: ::CreateFileMapping Pin
Joe Woodbury10-Oct-02 7:42
professionalJoe Woodbury10-Oct-02 7:42 
QuestionWhere did the crash happen? Pin
User 665810-Oct-02 5:27
User 665810-Oct-02 5:27 
AnswerRe: Where did the crash happen? Pin
Daniel Turini10-Oct-02 5:30
Daniel Turini10-Oct-02 5:30 
GeneralRe: Where did the crash happen? Pin
User 665810-Oct-02 5:59
User 665810-Oct-02 5:59 
GeneralRe: Where did the crash happen? Pin
Daniel Turini10-Oct-02 6:03
Daniel Turini10-Oct-02 6:03 
AnswerRe: Where did the crash happen? Pin
Paul M Watt10-Oct-02 6:42
mentorPaul M Watt10-Oct-02 6:42 
While in Debug mode you could use _CrtDbgReport, however that function only exists in the debug version of the C-Runtime libraries. Look at how ATLs ATLASSERT macro works.

#define _ASSERTE(expr) \
do { if (!(expr) && \
(1 == _CrtDbgReport(_CRT_ASSERT, __FILE__, __LINE__, NULL, #expr))) \
_CrtDbgBreak(); } while (0)

For release mode you could simply create your own function that reports the data in a message box, and you would use these preprocessor defines to get the line number and file: __FILE__, __LINE__

Good Luck


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Where did the crash happen? Pin
User 665810-Oct-02 6:50
User 665810-Oct-02 6:50 
GeneralRe: Where did the crash happen? Pin
Paul M Watt10-Oct-02 7:46
mentorPaul M Watt10-Oct-02 7:46 
GeneralIt has been a privilege... Pin
Georg Haan10-Oct-02 5:19
Georg Haan10-Oct-02 5:19 
GeneralRe: It has been a privilege... Pin
Daniel Turini10-Oct-02 5:20
Daniel Turini10-Oct-02 5:20 
Generalwrite vertical text using GDI+ Pin
Anonymous10-Oct-02 4:33
Anonymous10-Oct-02 4:33 
GeneralRe: write vertical text using GDI+ Pin
l a u r e n10-Oct-02 4:41
l a u r e n10-Oct-02 4:41 
GeneralRe: write vertical text using GDI+ Pin
Daniel Turini10-Oct-02 4:40
Daniel Turini10-Oct-02 4:40 
GeneralRe: write vertical text using GDI+ Pin
Roger Allen10-Oct-02 6:20
Roger Allen10-Oct-02 6:20 
GeneralRe: write vertical text using GDI+ Pin
Anonymous10-Oct-02 5:36
Anonymous10-Oct-02 5:36 
GeneralRe: write vertical text using GDI+ Pin
Daniel Turini10-Oct-02 5:56
Daniel Turini10-Oct-02 5:56 
GeneralRe: write vertical text using GDI+ Pin
Anonymous10-Oct-02 6:06
Anonymous10-Oct-02 6:06 
GeneralRe: write vertical text using GDI+ Pin
Alois Kraus10-Oct-02 6:27
Alois Kraus10-Oct-02 6:27 
GeneralRe: write vertical text using GDI+ Pin
Anonymous10-Oct-02 7:28
Anonymous10-Oct-02 7:28 
GeneralRe: write vertical text using GDI+ Pin
Daniel Turini10-Oct-02 8:04
Daniel Turini10-Oct-02 8:04 
GeneralRe: write vertical text using GDI+ Pin
Anonymous10-Oct-02 8:50
Anonymous10-Oct-02 8:50 
GeneralThank you all for your help. Pin
Anonymous10-Oct-02 8:54
Anonymous10-Oct-02 8:54 
GeneralMessage Compiler Internationalization Pin
Le centriste10-Oct-02 3:31
Le centriste10-Oct-02 3:31 

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.