Re: WTL SetToolTipText not working in UNICODE build



Hi,

Thanks for your post.
Here is a sample function call.
m_butBrowseBy.SetToolTipText(_T("Select a view to browse by"));

Regards

Steve



On May 21, 2:01 pm, "SvenC" <S...@xxxxxxxxxxxxxxxx> wrote:
Hi Steve,

Steve Foxover wrote:
Hi,

I have an application that uses bool
CBitmapButton::SetToolTipText(LPCTSTR lpstrText). It works fine in
multi-byte character set, but when I compile the app with UNICODE
character set all the tool tips break.

Please show us your code.
Do you use SetToolTipText(_T("The tooltip")); ? Notice the _T macro. If you
get compiler errors and "silenced" them with incorrect casts then you might
be passing ANSI strings which are interpreted as UNICODE which results in
unexpected characters.

--
SvenC

.


Loading