cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
tsuyoshimishina
Contributor

How can I embed non-ASCII strings in a GRC file?

I want my add-on to display Japanese menu items, but when I write Japanese characters into the GRC file, I occasionally encounter an "illegal string" error during the build process of Visual Studio. This issue seems to occur randomly. Is there a way to resolve this?

 

I found this discussion on this board (written in 2011!) mentioning the "-q utf8" argument of the GRC compiler. Does it still hold in ARCHICAD 24?

1 Solution

Accepted Solutions
Hiromichi Shinkawa
Graphisoft
Graphisoft

Hi,

I'd like suggest you to check the following GSJP web site which is about how to create VS environment for Japanese add-on.

https://www.graphisoft.co.jp/devsrc/AddonAPIPage/docs/index.html#/StartGuide/startguide_cmake 

 

HTH

Go to post

2 Replies 2
Hiromichi Shinkawa
Graphisoft
Graphisoft

Hi,

I'd like suggest you to check the following GSJP web site which is about how to create VS environment for Japanese add-on.

https://www.graphisoft.co.jp/devsrc/AddonAPIPage/docs/index.html#/StartGuide/startguide_cmake 

 

HTH

tsuyoshimishina
Contributor

LChen,


Thank you for your reply.
Your suggestion gave me a hint to solve my problem.
The solution I found is modifying the command line of custom build tool for the GRC file specified in the properties dialog as following:

 

".\Support\Tools\Win\ResConv.exe" -m r -D WINDOWS -T W -c 0 -q utf8 utf8 -i "RINT\$(ProjectName).grc" -D _DEBUG -o "$(OutDir)\RO\$(ProjectName).grc.rc2"

(Added "-c 0" and replaced "-q utf8 1252" with "-q utf8 utf8")

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!