Re: WTL SetToolTipText not working in UNICODE build
- From: Steve Foxover <sfoxover@xxxxxxxxx>
- Date: 22 May 2007 10:00:12 -0700
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
.
- Follow-Ups:
- References:
- WTL SetToolTipText not working in UNICODE build
- From: Steve Foxover
- WTL SetToolTipText not working in UNICODE build
- Prev by Date: Re: How to save data to Access database file!
- Next by Date: getting dialog tabbing to work properly with WTL
- Previous by thread: WTL SetToolTipText not working in UNICODE build
- Next by thread: Re: WTL SetToolTipText not working in UNICODE build
- Index(es):
Loading