Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 Tech Support » Trying to use _wchar_t as internal type Collapse All
Subject Author Date
Thomas Maurer Sep 30, 2005 - 3:30 AM


I compiled and linked the library V2.43 with 


#define __EXT_MFC_ENABLE_TEMPLATED_CHARS


When I tried to compile my own application the following output was generated:


==== BEGIN OUTPUT ====


stdafx.cpp


Prof-UIS multiple monitor support:


built-in


Automatically linking with Prof-UIS library: ProfUIS243yud.lib


(Professional User Interface Suite)


Prof-UIS native unicode character type support:


adding automatic conversion from unsigned short to __wchar_t


Prof-UIS real wchar_t type is:


unsigned short


Client project real wchar_t type is:


native __wchar_t


c:\Programme\Prof-UIS\Include\extbutton.h(286) : error C2664: ’int CWnd::GetWindowTextW(LPTSTR,int) const’ : cannot convert parameter 1 from ’CExtSafeSimpleStringT<BaseType>::PXSTR’ to ’LPTSTR’


with


[


BaseType=__prof_uis_used_wchar_t


]


Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast


 


==== END OUTPUT ====


 


Ok, I can live without _wchar_t being an internal type but I thought I might report this anyways.


Thanks


Thomas


 

Technical Support Sep 30, 2005 - 6:25 AM

Thank you for the bug report. The problem will be fixed if you move the body of the CExtButton::OnQueryWindowText() method from the ExtButton.h file to the ExtButton.cpp file.