Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPPropertyGridItem with Vista
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGridItem with Vista

 Post Reply Post Reply
Author
Message
Hiroaki View Drop Down
Groupie
Groupie


Joined: 30 September 2007
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hiroaki Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGridItem with Vista
    Posted: 13 November 2007 at 9:32pm

Hi!

Thank you for your cooperation anytime!
I'm using Xtreme ToolkitPro v11.1.3 with VC6.0 + SP6;

I have a question about CXTPPropertyGridItem with Windows Vista.

The following code operates satisfactory in WindowsXP.
However, In WindowsVista, I can't read CategoryName of ooooo because of the garbling.
ooooo is double byte code(Japanese).

CXTPPropertyGridItem* pCategory = m_wndPropertyGrid.AddCategory(_T("ooooo"));
or
CString strCategory = _T("ooooo");
CXTPPropertyGridItem* pCategory = m_wndPropertyGrid.AddCategory(strCategory);

I would appreciate if anyone give me suggestion.

Hiroaki

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 14 November 2007 at 12:58am
Hi,
 
Compile Application with Unicode.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 16 November 2007 at 7:35am
_T("oooo") incorrectly converts double byte (ShiftJIS) to unicode. Either put your strings into string resources or use something like MultiByteToWideChar
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.033 seconds.