tags:

views:

37

answers:

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?

+5  A: 

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

Fernando