Results 1 to 5 of 5

Thread: const char* of C++ to String of Delphi in SDL2

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    The problem of PAnsiChar is I can not use width NewGen copiler (andriod and ios).
    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

  2. #2
    Hm, strange. Did you try something like this?
    Code:
    var
       aux : string;
       auxUTF8 : UTF8string;
    begin
         auxUTF8 := SDL_GetHint(PChar(UTF8Encode(SDL_HINT_RENDER_SCALE_QUALITY)));
         aux := auxUTF8;
    end.

  3. #3
    With PAnsiChar(SDL_GetHint(PChar(UTF8Encode(SDL_HINT_RE NDER_SCALE_QUALITY))));
    work OK, but with
    UTF8String(SDL_GetHint(PChar(UTF8Encode(SDL_HINT_R ENDER_SCALE_QUALITY))));
    or UTF8String(PChar(SDL_GetHint(PChar(UTF8Encode(SDL_ HINT_RENDER_SCALE_QUALITY)))));
    or PChar(UTF8String(SDL_GetHint(PChar(UTF8Encode(SDL_ HINT_RENDER_SCALE_QUALITY)))));
    not work.

    Thanks
    www.kotai.es
    www.remakesonline.com -> Nemesis Online & Bubble Bobble Online & Castlevania Online & Penguin Adventure Online
    www.miniracingonline.com

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
  •