Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working when using {$DEFINE PS_BTSTRINGNATIVE} #6

Open
LuWey opened this issue Aug 25, 2023 · 3 comments
Open

Not working when using {$DEFINE PS_BTSTRINGNATIVE} #6

LuWey opened this issue Aug 25, 2023 · 3 comments

Comments

@LuWey
Copy link

LuWey commented Aug 25, 2023

I installed this fork to use Strings.
I realized I had to set
{$DEFINE PS_BTSTRINGNATIVE} { optional: default: not defined }
in file PascalScript.inc in order for TbtString to be String.
But even when running the simplest Console samples, Exec.LoadData(Data) fails.
In order to compile the samples, I had to change AnsiString to TbtString to satisfy the compiler.
What am I doing wrong?

@pult
Copy link
Owner

pult commented Aug 30, 2023

?:

  • delphi version
  • os (win, ...)
  • platform (win ??bits ...)

@LuWey
Copy link
Author

LuWey commented Aug 30, 2023

Delphi Version: D10.4
OS: Win 11, 64 Bit
Code sample compiled for Windows 32 Bit

@pult
Copy link
Owner

pult commented Jan 17, 2024

The PS_BTSTRINGNATIVE mode was added to break away from binding to AnsiString. This mode is in TODO state.
In the first place, it was important to compile at all. Next, you need to look at all the places with strings...
It is very labor intensive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants