NASM - The Netwide Assembler

Related Projects => NASMX => Topic started by: wyvern666 on December 26, 2011, 04:36:58 PM

Title: NASMX - Declare Unicode Strings
Post by: wyvern666 on December 26, 2011, 04:36:58 PM
Im messing with the NASMX win32/64 demos, the comments say: "This is a fully UNICODE aware". What this means?.

If i have this line:
Code: [Select]
szTitle:       declare(NASMX_TCHAR) NASMX_TEXT('Demo1'), 0x0

How would be the correct way to switch this to Unicode?. And the only way to understand NASMX correctly is learn from the nasmx.inc source?.

Thanks
Title: Re: NASMX - Declare Unicode Strings
Post by: Rob Neff on December 26, 2011, 04:51:46 PM
Unicode allows the developer to create programs that make use of the Unicode character set, thus extending your programs capabilities for internationalization (i18n).

To enable, simply -dUNICODE on the command line or in your make file.

The declare() and NASMX_TEXT() macros detect whether you are using UNICODE or not and will create the appropriate storage class that will be used by your program when programming in either standard US-ASCII or UNICODE.  By default it's ASCII.

Unfortunately there is no beginner documentation - only the example source demos - for you to learn from.
The examples are small and you should be able to grok it quickly.

We're here to help so let us know if you have questions.
Title: Re: NASMX - Declare Unicode Strings
Post by: wyvern666 on December 26, 2011, 08:06:10 PM
Ok Rob, thank you.