I am using Microsoft Visual C++ to write a C program. But when compile it, it create a exe file. When I double click on it, it open and close immediately. Yes, it run fine in the cmd window.
The question is, how can I make an exe file which can run when I double click on it. ( what I was trying to say is, when I download an exe from the internet, I often double click on it and it run, no install require). I want to create an exe like that.
Could you please guide me on how to do it?
Thank you very much