flat assembler
Message board for the users of flat assembler.

Index > Windows > Language but LANG_ENGLISH in resource section?

Author
Thread Post new topic Reply to topic
jentos



Joined: 30 Mar 2004
Posts: 8
Location: Russia
jentos 27 Nov 2007, 15:36
When I try use instead LANG_ENGLISH any other lang - for instance:

directory RT_DIALOG,dialogs
resource dialogs,\
37,LANG_RUSSIAN+SUBLANG_DEFAULT,demonstration
dialog demonstration,'Создание MessageBox (Some stuff on russian) ',70,70,190,175,WS_CAPTION+WS_POPUP+WS_SYSMENU+DS_MODALFRAME
dialogitem 'STATIC','&Caption:',-1,10,10,70,8,WS_VISIBLE

When I run program it write some very odd stuff in window caption.
In hex-editor it seems what unicode data resource section in exe file look invalid.
What I did wrong?
Post 27 Nov 2007, 15:36
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8132
Location: Kraków, Poland
Tomasz Grysztar 27 Nov 2007, 15:46
You must include the proper encoding macros to get the Unicode strings generated correctly. See the Text encoding section of the headers documentation.
Post 27 Nov 2007, 15:46
View user's profile Send private message Visit poster's website Reply with quote
jentos



Joined: 30 Mar 2004
Posts: 8
Location: Russia
jentos 27 Nov 2007, 16:39
Thanks a lot Smile
Post 27 Nov 2007, 16:39
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.