Author Topic: NASMX - Declare Unicode Strings  (Read 17616 times)

Offline wyvern666

  • Jr. Member
  • *
  • Posts: 32
NASMX - Declare Unicode Strings
« 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

Offline Rob Neff

  • Forum Moderator
  • Full Member
  • *****
  • Posts: 429
  • Country: us
Re: NASMX - Declare Unicode Strings
« Reply #1 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.

Offline wyvern666

  • Jr. Member
  • *
  • Posts: 32
Re: NASMX - Declare Unicode Strings
« Reply #2 on: December 26, 2011, 08:06:10 PM »
Ok Rob, thank you.