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

Remove {$IF NOT DEFINED(CONSOLE)} to support vcl form apps #13

Open
chmichael opened this issue Oct 12, 2024 · 0 comments
Open

Remove {$IF NOT DEFINED(CONSOLE)} to support vcl form apps #13

chmichael opened this issue Oct 12, 2024 · 0 comments

Comments

@chmichael
Copy link

Hello,
I to use the console window in my VCL project:
if not AttachConsole(DWORD(-1)) then
AllocConsole;

but TProviderConsole is checking for a definition of CONSOLE which prevents VCL apps with "manual" console to use the provider.
Removing the definitions works without problems. (Since the VCL Form App isn't a console app it doesn't define this)

procedure TProviderConsole.Save(const ACache: TArray);
...
{$IF NOT DEFINED(CONSOLE)} // REMOVE
Exit;
{$ENDIF}

Thank you

@chmichael chmichael changed the title Remove {$IF NOT DEFINED(CONSOLE)} to support vcl apps Remove {$IF NOT DEFINED(CONSOLE)} to support vcl form apps Oct 12, 2024
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

1 participant