Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:48:09+00:00 2026-06-13T10:48:09+00:00

Possible Duplicate: Profiler and Memory Analysis Tools for Delphi How do I hide the

  • 0

Possible Duplicate:
Profiler and Memory Analysis Tools for Delphi
How do I hide the console window?

I’m reposting this to make it more clear. So, here is my console application:

enter image description here

That opens a socket to 127.0.0.1:81, when the console application is visible it works fine, now how do I keep it working fine as a console but make the console invisible?

I am using Delphi 2007 (7).

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:48:10+00:00Added an answer on June 13, 2026 at 10:48 am

    You can use ShowWindow and the GetConsoleWindow WinAPi functions.

    Try this sample

    {$APPTYPE CONSOLE}
    
    uses
      Windows,
      SysUtils;
    
    function GetConsoleWindow: HWND; stdcall; external kernel32;
    
    
    begin
      try
        Writeln('Press enter to hide console the window');
        Readln;
        //hide the console window
        ShowWindow(GetConsoleWindow, SW_HIDE);
    
        //do something
        Sleep(5000);
    
        Writeln('Press enter to exit');
        //show the console window
        ShowWindow(GetConsoleWindow, SW_SHOW);
        Readln;
      except
        on E: Exception do
          Writeln(E.ClassName, ': ', E.Message);
      end;
    end.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Is there any working memory profiler for Python3 I have some script
Possible Duplicate: Javascript memory profiler I like to know what variables take how much
Possible Duplicate: Best .NET memory and performance profiler? My C# program, a web scraper,
Possible Duplicate: How do I make a request using HTTP basic authentication with PHP
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: Possible memoryleak in ConcurrentBag? I have epic memory leak in my app.
Possible Duplicate: How to profile my code? Whats are best practices and tools for
Possible Duplicate: Simplest way to profile a PHP script We are building this online
Possible Duplicate: Please recommend a Java profiler I developed a java appliation in j2sdk1.4.2_18,Eclipse3.1,I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.