cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

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

tsuyoshimishina
Contributor

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 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
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

View solution in original post

2 REPLIES 2
Solution
LChen
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

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")