Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » About CExtLabel Collapse All
Subject Author Date
Seung Cheol Lee Oct 16, 2006 - 12:17 AM

I Finded two errors of CExtLabel.

1st : I did debug -> start(F5). And the debug error happened at CExtLabel.
Debug Assertion Failed?
Program: ...

Expression:nLength <= GetData()->nAllocLength
2nd : I used Korean Language. At release unicode mode, the end of caption string of CExtLabel attached some character after execution.

My mistake or CExtLabel bugs ?

Suhai Gyorgy Oct 16, 2006 - 1:38 AM

The 2nd bug been already discussed in this forum, but I think fixing the second bug will fix your first bug as well. Support’s answer was at that time:

As for the "square-symbols" this bug is already fixed. Please open the CExtLabel::WindowProc method and find the following code snippet:

		else if( message == WM_GETTEXT )
			TCHAR * lpszText = (TCHAR *)lParam;
			// 2.55
			// 	lpszText, 
			// 	wParam, 
			// 	m_sText
			// 	);
				wParam - 1
			lResult = TRUE;
Add the following line just after the __EXT_MFC_STRNCPY and let us know if the problem persist:
lpszText[ wParam - 1 ] = _T(’\0’);}
P.S.: Careful with the ’ character, it appears as a different character on forum!

Seung Cheol Lee Oct 16, 2006 - 3:13 AM

Thank you for the answer. ˆˆ

Seung Cheol Lee Oct 16, 2006 - 12:20 AM

Debug also was executed at unicode mode