Print Page | Close Window

CXTPPropertyGridItem with Vista

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=8773
Printed Date: 14 November 2025 at 3:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGridItem with Vista
Posted By: Hiroaki
Subject: CXTPPropertyGridItem with Vista
Date 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




Replies:
Posted By: Oleg
Date Posted: 14 November 2007 at 12:58am
Hi,
 
Compile Application with Unicode.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Barto
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net