J
J
Jen992021-08-31 10:20:25
Command line
Jen99, 2021-08-31 10:20:25

How / how to patch exe to display the console?

There is a graphical application (using WinApi and DirectX) without a console window.
I want to add forced inclusion of the console. As far as I remember, this is possible by setting a flag in the exe (it seems in the PE section), but I already forgot how it's done.

It seems that there are even ready-made programs for this, but nothing has been found.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jeen99, 2021-08-31
@Jeen99

UPD: already found a solution.
Theoretical part: here
AND practical part: you will need the editbin program from MSVC.
editbin.exe /subsystem:console my.exe

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question