How about the "Debug Assertation Failed" error? The code above compiles and runs normally when I put it in the (default) CxxxxxDlg class, but when I try to put it in a separate class, I get the error. Thanks again.
I am trying to write a simle program in MFC (MSVC++ 2003 .NET) that prints a rectangle to the dialog box. Thats all. I created a class to do this:
//------rectangle class definition---------------
class DrawRectangle : public CDialog
{
private:
CRect rect;
CClientDC *pDC;
CPoint A, B, C, D...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.