Click here to Skip to main content
15,891,976 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have used CDialog class in VC++ Visual Studio 6.0 which worked fine but now when I use the same in Visual Studio 2005 I m facing the problem of Debug Assertion failure

Wht must be the reason?

Thanks
Pritha
Posted
Updated 23-Sep-10 3:15am
v2

The best way to fix a problem like that is to first use your debugger to see where things went wrong and for what reason. Then, if you are stuck, come back here and post all the information you gathered with the debugger.
There's no way somebody is going to find what the problem is with so little information.
 
Share this answer
 
Comments
prithaa 24-Sep-10 2:30am    
Reason for my vote of 5
Automatic vote of 5 for accepting answer.
ThatsAlok 24-Sep-10 2:46am    
Best solution I think :-)
Ensure all IDC_* constants are valid. There might be one or more constants (defined in resource.h) but not in actual dialog resource.
 
Share this answer
 
You cause an assertion when you do something MFC's programmers thought was a big dodgy. Have a look at where the assertion is fired and see if you can work back to your code and see what caused it.

Cheers,

Ash
 
Share this answer
 
v2
Please provide some more details, where exactly are u getting the debug assertion failure. (provide code snippet if poss)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900