Click here to Skip to main content
15,910,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralICMP PACKET Pin
summo2-Mar-03 23:35
summo2-Mar-03 23:35 
GeneralGetting Assertion Failure Pin
Ph@ntom2-Mar-03 23:33
Ph@ntom2-Mar-03 23:33 
GeneralRe: Getting Assertion Failure Pin
KingsGambit3-Mar-03 0:02
KingsGambit3-Mar-03 0:02 
GeneralRe: Getting Assertion Failure Pin
KarstenK3-Mar-03 0:17
mveKarstenK3-Mar-03 0:17 
GeneralRe: Getting Assertion Failure Pin
Ph@ntom3-Mar-03 1:41
Ph@ntom3-Mar-03 1:41 
GeneralRe: Getting Assertion Failure Pin
Ph@ntom3-Mar-03 2:18
Ph@ntom3-Mar-03 2:18 
GeneralRe: Getting Assertion Failure Pin
Alexinuk3-Mar-03 4:13
Alexinuk3-Mar-03 4:13 
GeneralRe: Getting Assertion Failure Pin
Alexinuk3-Mar-03 2:57
Alexinuk3-Mar-03 2:57 
busisoft wrote:
I have already explained what I am getting.

There is still an assertion when I am setting the EditControl->EnableWindow(FALSE) values.


It seems like you are missing the point of ASSERTions. When your code ASSERTs it is usually because you are not using the MFC classes in the way in which they are intended.

I'm betting that the assertion that caused your code to crash was:

ASSERT(m_hWnd != NULL);

This line of code causes an Assertion when whichever window has not been created, so just by looking at this line of code in the debugger (when you get an Assertion, run your program in the debugger, then click on "Retry" - the debugger will jump to the Assertion in the MFC source (unless, of course you have your opwn ASSERTions in place - quite a good idea)) you will be able to see what is wrong.

Once you've debugged a few of these you will know what each one means and be able to fix the problem in a matter of minutes.

-Alex
Generalcreate and send tcp packet Pin
summo2-Mar-03 23:29
summo2-Mar-03 23:29 
GeneralEncryption Pin
San2-Mar-03 23:17
San2-Mar-03 23:17 
GeneralEncryption Pin
San2-Mar-03 23:16
San2-Mar-03 23:16 
GeneralRe: Encryption Pin
karl_w3-Mar-03 0:56
karl_w3-Mar-03 0:56 
GeneralC++: Doing the right construction work Pin
tilli again2-Mar-03 23:03
susstilli again2-Mar-03 23:03 
GeneralRe: C++: Doing the right construction work Pin
jhwurmbach2-Mar-03 23:10
jhwurmbach2-Mar-03 23:10 
GeneralRe: C++: Doing the right construction work Pin
tilliagain3-Mar-03 0:10
susstilliagain3-Mar-03 0:10 
GeneralRe: C++: Doing the right construction work Pin
Alvaro Mendez3-Mar-03 4:37
Alvaro Mendez3-Mar-03 4:37 
Generalproblem on get the text from other window Pin
kbyiu2-Mar-03 20:20
kbyiu2-Mar-03 20:20 
GeneralRe: problem on get the text from other window Pin
Tony Chung : )2-Mar-03 20:24
Tony Chung : )2-Mar-03 20:24 
GeneralRe: problem on get the text from other window Pin
kbyiu2-Mar-03 22:07
kbyiu2-Mar-03 22:07 
Generalgprof on windows Pin
PrashantJ2-Mar-03 19:58
PrashantJ2-Mar-03 19:58 
GeneralRe: gprof on windows Pin
Neville Franks2-Mar-03 21:49
Neville Franks2-Mar-03 21:49 
GeneralRe: gprof on windows Pin
Johnny ²2-Mar-03 21:50
Johnny ²2-Mar-03 21:50 
GeneralRe: gprof on windows Pin
Steve S3-Mar-03 0:51
Steve S3-Mar-03 0:51 
GeneralError with ShellExecute(),WinExec() & CreateProcess() Pin
Hemant kulkarni2-Mar-03 19:36
Hemant kulkarni2-Mar-03 19:36 
GeneralRe: Error with ShellExecute(),WinExec() & CreateProcess() Pin
KarstenK2-Mar-03 21:31
mveKarstenK2-Mar-03 21: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.