Hi,
I am new to vc++.net programming ,while I use exit(0) statement on
button click event , it is OK,
but when I use exit(0) statement on menu click event, there will be a debug
error,could anybody tell
me why?
_CRTIMP void _cdecl _CrtDbgBreak(
void
)
{
DebugBreak();
}
Alex 1 1465
In an MFC app, if you want to exit, PostMessage a WM_CLOSE to your main
window.
--
Regards,
Nish [VC++ MVP] http://www.voidnish.com /* MVP tips tricks and essays web site */ http://blog.voidnish.com /* My blog on C++/CLI, MFC, Whidbey, CLR... */
"Alex Lu" <lu**********@sina.com> wrote in message
news:uH**************@TK2MSFTNGP10.phx.gbl... Hi, I am new to vc++.net programming ,while I use exit(0) statement on button click event , it is OK, but when I use exit(0) statement on menu click event, there will be a
debug error,could anybody tell me why?
_CRTIMP void _cdecl _CrtDbgBreak( void ) { DebugBreak(); }
Alex
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Thomas Lorenz |
last post by:
Hello NG,
I'm working on a larger C++ project with it's own debug functionality. The
typical debug call looks like this:
DEBUG(WARNING, "An error " << getErrorCategory() << " occured.");
...
|
by: Slasher186 |
last post by:
Hi all,
First of all, I'm sorry if I posted at the wrong section here, but I can't seem to find the VB 6.0 newsgroup ?
I'm developing my apps with VB 6.0 sp5 installed on win xp. I have create...
|
by: scorpion53061 |
last post by:
This exception occured while running in the development environment. The
debugger didnt catch it though it appeared as a message box
prompt........does anyone have insight on this?
...
|
by: ST |
last post by:
Hello everyone, Can anyone help me with this error above when I debug my web
app project in vstudio.net?? I can't figure it out! It was working fine for
months, and now all of a sudden it's not!!...
|
by: Scubadude |
last post by:
Hi,
I'm new to perl and have run into some roadblocks while trying to run
tutorials.
I have installed Apache v2.2.3
I have installed ActivePerl v6.6.1.638
I have installed php v5.2.0
I am...
|
by: jocobunshin |
last post by:
Hi there! I'm new in Turbo C... uhmm our teacher gave us a project to make a program in Turbo C. Im from the Philippines, and our project is due on tuesday, februrary 13, 2007... can anyone check my...
|
by: =?Utf-8?B?Sm9obiBT?= |
last post by:
Hi,
I'm trying to follow Lab1 of the WF Hands On Labs.
Having created the project and set a breakpoint as per instructions, I press
F5 to compile and run the project. The instructions say...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: hyperpau |
last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding.
I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com).
Ergo, I...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |