Unicode in Resource files

Tuesday, October 14th, 2008 | Dennis D. Spreen | Delphi 2009, Delphi Programming

Ever tried to put a unicode string (Delphi 2009) in a resource (.rc) file and tried to compile it with brcc32 or rc32?

You’ll get this error:  Expecting resource name or resource type name

The Solution is very simple (though it kept me searching some hours :-):

Use

cgrc.exe

(CodeGear Resource Compiler/Binder) instead!

Tags: , , ,

4 Comments to Unicode in Resource files

kalyan
April 7, 2011

Thanqu dude

Dennis
April 7, 2011

You’re welcome.

Esben
January 20, 2012

Hi,

I’ve got the exact same error message from using brcc32. Obviously, I want to see if your suggestion works for me too, but googling ‘cgrc’ and related doesn’t lead me to any sites allowing for me to download cgrc.exe. Is it part of some Embarcadero commercial product?
Any ideas how I could get hold of ccgc.exe?
Thanks in advance!!!

cheers,
Esben

Dennis
January 20, 2012

cgrc is part of delphi/radstudio (2009/2010/XE2)

e.g. Delphi 2010:
C:\Program Files\Embarcadero\RAD Studio\7.0\bin\cgrc.exe

Leave a comment

About Dennis D. Spreen

I'm an avid programmer working on a variety of platforms in a variety of languages with a wide technical interest.

Search

QR Code

Categories