Posted: Wed May 17, 2017 11:14 am Post subject: Delphi - Hide console window
in lazarus I've created a new console project file. How can I hide the console window that appears if I run the project? (I don't want to use a form project because its large in size).
I've tried the following code which I found via google search but that doesn't work:
Code:
program unit1;
uses
Windows,
Shellapi;
function GetConsoleWindow: HWND; stdcall; external kernel32;
procedure Main;
begin
ShowWindow(GetConsoleWindow, SW_HIDE);
end;
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum