For Programmers: Free Programming Magazines  


Home > Archive > MSDN > January 2006 > MFC Dialog throws exception with additional buttons and joysetcapt









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MFC Dialog throws exception with additional buttons and joysetcapt
hentairo

2006-01-11, 3:55 am

Hi All,

I am using Microsoft Visual Studio .Net 2003, creating a MFC dialog
application in C++.

I am currently facing a problem which puzzles me. In my MFC dialog
application, I already have 14 buttons declared. In this application, I also
need to use the function, joysetcapture to capture the joystick. However,
this seems to cause my program to terminate and throws an exception if I
tries to add more buttons. For example, the addition of a 15th button will
throws an exception at the joysetcapture function, if the joystick is plugged
into the computer.

If there is no joystick, addition of more buttons caused no problem.

Am really at a lost at this weird problem. Does anyone has any idea what
problem I am facing? Thanks!

regards,

hentairo

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com