flat assembler
Message board for the users of flat assembler.

Index > Windows > FASM Equivalent to L"String"

Author
Thread Post new topic Reply to topic
StarKnightD



Joined: 04 Jul 2007
Posts: 38
StarKnightD
I think the subject is put quite nicely so I'll keep it short:

I'm looking for the FASM equivalent to what I see (but hardly use) Visual Studio using: L"String"

Thanks,
Stefan


Last edited by StarKnightD on 13 Aug 2009, 07:06; edited 1 time in total
Post 13 Aug 2009, 04:53
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17332
Location: In your JS exploiting you and your system
revolution
I think that would be du?
Post 13 Aug 2009, 05:12
View user's profile Send private message Visit poster's website Reply with quote
StarKnightD



Joined: 04 Jul 2007
Posts: 38
StarKnightD
Thanks.. brb, after I try it.
Post 13 Aug 2009, 05:29
View user's profile Send private message Reply with quote
StarKnightD



Joined: 04 Jul 2007
Posts: 38
StarKnightD
yeah, it works.

Thanks revolution Smile
Post 13 Aug 2009, 07:04
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
Take in mind this:
http://flatassembler.net/docs.php?article=win32 wrote:
1.7 Text encoding


The resource macroinstructions use the du directive to define any Unicode strings inside resources - since this directive simply zero extends the characters to the 16-bit values, for the strings containing some non-ASCII characters, the du may need to be redefined. For some of the encodings the macroinstructions redefining the du to generate the Unicode texts properly are provided in the ENCODING subdirectory. For example if the source text is encoded with Windows 1250 code page, such line should be put somewhere in the beginning of the source:

include 'encoding\win1250.inc'
(note that the scope is beyond resources actually)
Post 13 Aug 2009, 15:45
View user's profile Send private message Reply with quote
StarKnightD



Joined: 04 Jul 2007
Posts: 38
StarKnightD
Thanks Loco. the info is very helpful.
Post 13 Aug 2009, 19:58
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.