Results 1 to 10 of 16

Thread: UNICODESTRING vs ANSISTRING

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    PGDCE Developer de_jean_7777's Avatar
    Join Date
    Nov 2006
    Location
    Bosnia and Herzegovina (Herzegovina)
    Posts
    287
    Quote Originally Posted by Ñuño Martínez View Post
    I know I can avoid it using conversion functions as I've explained above but they aren't needed by FPC (actually they'll not work!).
    You can add your own functions which do conversion when Delphi is used, but just return the string as is when FPC is used, via conditional compilation. They do the required thing within them, and just use them consistently instead of Delphi specific functions. Define them in a shared unit. I do this for different platforms. I don't use Delphi, but I have seen other code which does something similar in order to support both Delphi and FPC.
    Existence is pain

  2. #2
    I think you have something there. Thanks. I think I'll do it that way.
    No signature provided yet.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •