Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Undesired Constant String [NEW problem]

  1. #11

    Re: Undesired Constant String [NEW problem]

    After staring at my screen in awed confusion for hours, I have discovered that when passing strings longer than 255 chars to functions, they're cut to 255 chars... :X Is there a solution for this one?

    And there I was, thinking writing a text game was going to be extremely difficult...

    Edit: Well, I believe the problem is solved now. Changed the variables to ansistrings, left the function parameters as strings and for the time being it's working...

  2. #12

    Re: Undesired Constant String [NEW problem]

    If variables are big it is way more effective to pass only pointers to functions. They don't mind how big the original data is, 1 byte or million bytes

    Edit: Usual way to name strings for pointers is PChar.

Page 2 of 2 FirstFirst 12

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
  •