User forums > Help

Console Application

(1/2) > >>

Shazey:
Is there a way to make a *.exe console application?
I tried running the application in bin/Debug but it just flashes and closes. I have no clue what to do :/

oBFusCATed:
Project -> Properties -> Build targets -> Type == console
Project -> Properties -> Build targets -> Pause when the execution ends

Next time please read the manual.

Shazey:
Did that before, still doesn't work.

Jenna:

--- Quote from: Shazey on March 11, 2012, 07:53:19 pm ---Did that before, still doesn't work.

--- End quote ---
If you run a console-application from (e.g.) windows explorer (I assume you are on windows), that does nothing but write some text on console (like the default hello-world example), you will see a console window flashing, long enough to display the text and close.
if you run it from commandline (cmd.exe in windows), you will see the output.
ALternatively you can run it through C::B and make sure the settings are like oBFusCATed has posted.

Shazey:
So, there is no other way than to run it through the Command Prompt?

Navigation

[0] Message Index

[#] Next page

Go to full version