Why do I see a console window when I run a dynamically compiled EXE?
So I have a program that dynamically compiles a new program at the click of a button.
The new program generates and works perfectly.
The only weird thing is that when I run this newly generated exe, first a console window opens, the title开发者_如何学编程 is "C:\calculator.exe"
and then my calculator.exe program opens.
For some reason it is starting the console window and I'm not sure why.
Any suggestions?
Are you using the command line compiler? If so, try using /target:winexe
instead of /target:exe
.
精彩评论