Computing.Net > Forums > Programming > Assertion error

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Assertion error

Reply to Message Icon

Name: MrSteve
Date: December 31, 2003 at 18:35:30 Pacific
OS: XP Home
CPU/Ram: 1.9 512
Comment:

i used MFC, and C++

i've made a list box, and i'm trying to add a string to it. to test the method i made an onsetfocus function tested it and everything worked!!! YAY!! but now i made a member function adding the exact same line and i get a runtime errer and it says this when i clicked retry and debug

{ ASSERT(::IsWindow(m_hWnd)); return (int)::SendMessage(m_hWnd, LB_ADDSTRING, 0, (LPARAM)lpszItem); }



Sponsored Link
Ads by Google

Response Number 1
Name: MrSteve
Date: January 1, 2004 at 20:05:48 Pacific
Reply:

Don't worry about it, since no one could figure it out (i'm guessing since i got no replys) i kinda changed it, its not really what i wanted but it works and it doesn't look bad i can live with it the way i now have it and still have a smile on my face.


0
Reply to Message Icon

Related Posts

See More


OE 6 incoming mail delete... Date and time in VB



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Assertion error

Visual C++ error www.computing.net/answers/programming/visual-c-error/1543.html

C++ deb assertion problems www.computing.net/answers/programming/c-deb-assertion-problems/1652.html

gtk+ gtk_text_insert error www.computing.net/answers/programming/gtk-gtktextinsert-error/5845.html