Click here to Skip to main content
15,888,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to display '&' text on CMFCToolBarButton Pin
Un Suthee8-Jun-09 10:41
Un Suthee8-Jun-09 10:41 
AnswerRe: How to display '&' text on CMFCToolBarButton Pin
Rajesh R Subramanian8-Jun-09 11:11
professionalRajesh R Subramanian8-Jun-09 11:11 
GeneralRe: How to display '&' text on CMFCToolBarButton Pin
Un Suthee8-Jun-09 12:47
Un Suthee8-Jun-09 12:47 
GeneralRe: How to display '&' text on CMFCToolBarButton Pin
«_Superman_»8-Jun-09 15:39
professional«_Superman_»8-Jun-09 15:39 
GeneralRe: How to display '&' text on CMFCToolBarButton Pin
wolfplan8-Jun-09 17:29
wolfplan8-Jun-09 17:29 
GeneralRe: How to display '&' text on CMFCToolBarButton Pin
Un Suthee9-Jun-09 8:17
Un Suthee9-Jun-09 8:17 
AnswerRe: How to display '&' text on CMFCToolBarButton Pin
yuanbo8610228-Jun-09 19:30
yuanbo8610228-Jun-09 19:30 
QuestionUnhandled exception access violation on function call. Any tips on how to proceed Pin
ujwal koneru8-Jun-09 9:46
ujwal koneru8-Jun-09 9:46 
hi
I am getting error

Unhandled exception at 0x0037bbae in abc.exe: 0xC0000005: Access violation writing location 0x000000a8.

I debugged and it looks like the error happens at a function call.
argMainLoop( MouseEvent, keyEvent, mainLoop );

the three arguments are three functions.
declaration:
void argMainLoop( void (*mouseFunc)(int button, int state, int x, int y),
void (*keyFunc)(unsigned char key, int x, int y),
void (*mainFunc)(void) )

I check the disassembly.


argMainLoop( MouseEvent, keyEvent, mainLoop );
0043DE9F push offset mainLoop (43E410h)
0043DEA4 push offset keyEvent (43DF90h)
0043DEA9 push offset MouseEvent (43DF60h)
0043DEAE call @ILT+4420(_argMainLoop) (436149h)
0043DEB3 add esp,0Ch

the crash is happening at last two lines of the assembly.

The functions that are passed as parameters are all forward declared. all the declarations looked fine(else might have been compiler issue). the error is coming up in run time in debug and release configurations.

I am stuck here with no idea how to proceed in identifying the error. Any hints would be very helpful
QuestionRe: Unhandled exception access violation on function call. Any tips on how to proceed Pin
CPallini8-Jun-09 9:55
mveCPallini8-Jun-09 9:55 
AnswerRe: Unhandled exception access violation on function call. Any tips on how to proceed Pin
ujwal koneru8-Jun-09 10:43
ujwal koneru8-Jun-09 10:43 
GeneralRe: Unhandled exception access violation on function call. Any tips on how to proceed Pin
«_Superman_»8-Jun-09 15:49
professional«_Superman_»8-Jun-09 15:49 
Questiondissapearence of dialog parts in c++ Pin
andrassy8-Jun-09 8:51
andrassy8-Jun-09 8:51 
AnswerRe: dissapearence of dialog parts in c++ Pin
David Crow8-Jun-09 10:30
David Crow8-Jun-09 10:30 
AnswerRe: dissapearence of dialog parts in c++ Pin
«_Superman_»8-Jun-09 15:54
professional«_Superman_»8-Jun-09 15:54 
GeneralRe: dissapearence of dialog parts in c++ Pin
andrassy9-Jun-09 6:55
andrassy9-Jun-09 6:55 
GeneralRe: dissapearence of dialog parts in c++ Pin
andrassy21-Jul-09 10:09
andrassy21-Jul-09 10:09 
QuestionParenting a modal CDialog Pin
TyrionTheImp8-Jun-09 8:17
TyrionTheImp8-Jun-09 8:17 
AnswerRe: Parenting a modal CDialog Pin
Sarath C8-Jun-09 9:09
Sarath C8-Jun-09 9:09 
GeneralRe: Parenting a modal CDialog Pin
TyrionTheImp9-Jun-09 4:40
TyrionTheImp9-Jun-09 4:40 
QuestionRe: Parenting a modal CDialog Pin
David Crow8-Jun-09 10:22
David Crow8-Jun-09 10:22 
AnswerRe: Parenting a modal CDialog Pin
TyrionTheImp9-Jun-09 4:42
TyrionTheImp9-Jun-09 4:42 
GeneralRe: Parenting a modal CDialog Pin
TyrionTheImp21-Jun-09 4:05
TyrionTheImp21-Jun-09 4:05 
Questioninet_addr function and leading zeros Pin
JBAK_CP8-Jun-09 8:16
JBAK_CP8-Jun-09 8:16 
AnswerRe: inet_addr function and leading zeros Pin
CPallini8-Jun-09 8:59
mveCPallini8-Jun-09 8:59 
GeneralRe: inet_addr function and leading zeros Pin
JBAK_CP8-Jun-09 9:15
JBAK_CP8-Jun-09 9:15 

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.