Announcement

Collapse
No announcement yet.

Unicode

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unicode

    Hi

    as we all know, Lua is not unicode compatible.

    However for various reasons we need to build some LMD with UNICODE defined, and so we are running into problems with the Helper functions.

    many funcs use char* (which is fine since lua needs that) but use calls like lstrlen, lstrcpy, wsprintf.

    These become the W versions when UNICODE is defined. So I'm having to change the library helper functions to the A versions of the functions explicitly so it will compile as ANSI with UNICODE defined.

    Something for a future release of the SDK maybe.

  • #2
    I also needed to put an extern "C" in front of the dll export for GetSDKVersion which is in the helpers as well.

    Basically shouldn't use TCHAR/LPCTSTR unless your underlying code can handle unicode (which Lua can't).

    Comment

    Working...
    X