🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2134

Re: Storing UNICODE in mixed string resource

#2134
From: Bob Gonder
Date: Tue, 10 Apr 2007 16:07
25 lines
1827 bytes
Mike Collins wrote:

>Thanks bob, thats pretty much as i though i.e. us the W api calls.  But how 
>do i store the captions in resource file.

See JF Jolin's answer:
    IDS_FOLDER     L"C:\\WINDOWS"      // UNICODE string

>  At the minute, if i paste a UNICODE caption into my resource stringtable

How are you doing that?

> i get a compile error.

Such as?

>  Do i need to conver the UNICODE values into escape values first and then paste 
>them into the resource.  I believe i have a linux utility that will do this 
>for me...

Looks like you do need to do that. See example

IDS_RUSSIANSTRING L"\x0421\x043f\x0440\x0430\x0432\x043a\x0430"

http://msdn2.microsoft.com/en-us/library/aa381050.aspx
Technical Details
Message-ID: <42cn13dg2ujt0n9qvmi28fkd28oqbq2482@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news.motzarella.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <461b4e2f@newsgroups.borland.com> <ns8n13toikgnmrtth262dtekr5qfj8daoo@4ax.com> <461baeaf@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4f9f4ee974b60660
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Storing UNICODE in mixed string resource
Date: Tue, 10 Apr 2007 09:07:23 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <42cn13dg2ujt0n9qvmi28fkd28oqbq2482@4ax.com>
References: <461b4e2f@newsgroups.borland.com> <ns8n13toikgnmrtth262dtekr5qfj8daoo@4ax.com> <461baeaf@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.88.78
X-Trace: newsgroups.borland.com 1176221241 69.69.88.78 (10 Apr 2007 09:07:21 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news.motzarella.org!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail