digitalmars.D.learn - How to create an .exe without execute the terminal in Windows?
- =?UTF-8?B?dGhlUGVuZ8O8aW4=?= (8/8) Aug 12 2023 I would know how to make some this but in Dlang:
- Adam D Ruppe (18/19) Aug 12 2023 best way is to use the linker switch.
- =?UTF-8?B?dGhlUGVuZ8O8aW4=?= (3/22) Aug 12 2023 Where could I get more information? I can't find this link
- ryuukk_ (10/38) Aug 12 2023 It's part of druntime, it comes with every installation of the
- =?UTF-8?B?dGhlUGVuZ8O8aW4=?= (3/19) Aug 12 2023 Thanks for all, well in the online documentation there's not doc
I would know how to make some this but in Dlang: ` #include <windows.h> void hideConsoleWindow() { ShowWindow(GetConsoleWindow(),SW_HIDE); } `
Aug 12 2023
On Saturday, 12 August 2023 at 23:13:39 UTC, thePengüin wrote:I would know how to make some this but in Dlang:best way is to use the linker switch. On Win32, you can pass -L/subsystem:windows if you don't want a console to be automatically allocated. Please note when compiling on Win64, you need to explicitly list -Lgdi32.lib -Luser32.lib on the build command. If you want the Windows subsystem too, use -L/subsystem:windows -L/entry:mainCRTStartup. If using ldc instead of dmd, use -L/entry:wmainCRTStartup instead of mainCRTStartup; note the "w". ```` import core.sys.windows.windows; void hideConsoleWindow() { ShowWindow(GetConsoleWindow(),SW_HIDE); } ``` woudl also work.
Aug 12 2023
On Saturday, 12 August 2023 at 23:18:16 UTC, Adam D Ruppe wrote:On Saturday, 12 August 2023 at 23:13:39 UTC, thePengüin wrote:Where could I get more information? I can't find this link "import core.sys.windows.windows"I would know how to make some this but in Dlang:best way is to use the linker switch. On Win32, you can pass -L/subsystem:windows if you don't want a console to be automatically allocated. Please note when compiling on Win64, you need to explicitly list -Lgdi32.lib -Luser32.lib on the build command. If you want the Windows subsystem too, use -L/subsystem:windows -L/entry:mainCRTStartup. If using ldc instead of dmd, use -L/entry:wmainCRTStartup instead of mainCRTStartup; note the "w". ```` import core.sys.windows.windows; void hideConsoleWindow() { ShowWindow(GetConsoleWindow(),SW_HIDE); } ``` woudl also work.
Aug 12 2023
On Saturday, 12 August 2023 at 23:22:20 UTC, thePengüin wrote:On Saturday, 12 August 2023 at 23:18:16 UTC, Adam D Ruppe wrote:It's part of druntime, it comes with every installation of the compiler On windows it usually is: ``C:\D\dmd2\src\druntime\src\core\sys\windows`` One question to D maintainers: Why is ``core.sys`` modules not displayed on the online documentation? this seems to be a bug somewhere? https://dlang.org/phobos/index.html There is ``core`` for everything else, but not for ``core.sys``On Saturday, 12 August 2023 at 23:13:39 UTC, thePengüin wrote:Where could I get more information? I can't find this link "import core.sys.windows.windows"I would know how to make some this but in Dlang:best way is to use the linker switch. On Win32, you can pass -L/subsystem:windows if you don't want a console to be automatically allocated. Please note when compiling on Win64, you need to explicitly list -Lgdi32.lib -Luser32.lib on the build command. If you want the Windows subsystem too, use -L/subsystem:windows -L/entry:mainCRTStartup. If using ldc instead of dmd, use -L/entry:wmainCRTStartup instead of mainCRTStartup; note the "w". ```` import core.sys.windows.windows; void hideConsoleWindow() { ShowWindow(GetConsoleWindow(),SW_HIDE); } ``` woudl also work.
Aug 12 2023
On Saturday, 12 August 2023 at 23:30:34 UTC, ryuukk_ wrote:On Saturday, 12 August 2023 at 23:22:20 UTC, thePengüin wrote:Thanks for all, well in the online documentation there's not doc for core.sys but I can compile with core.sys, and Thanks for thatOn Saturday, 12 August 2023 at 23:18:16 UTC, Adam D Ruppe wrote:It's part of druntime, it comes with every installation of the compiler On windows it usually is: ``C:\D\dmd2\src\druntime\src\core\sys\windows`` One question to D maintainers: Why is ``core.sys`` modules not displayed on the online documentation? this seems to be a bug somewhere? https://dlang.org/phobos/index.html There is ``core`` for everything else, but not for ``core.sys``[...]Where could I get more information? I can't find this link "import core.sys.windows.windows"
Aug 12 2023