2024-06-16 02:39 PM
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?
Solved! Go to Solution.
2024-06-17 09:40 AM
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
2024-06-17 09:40 AM
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
2024-06-17 01:13 PM
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")