1

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?

itowlson
  • 73,686
  • 17
  • 161
  • 157
Sergio Tapia
  • 40,006
  • 76
  • 183
  • 254

1 Answers1

4

Are you using the command line compiler? If so, try using /target:winexe instead of /target:exe.

Fernando
  • 4,029
  • 1
  • 26
  • 35