为什么我看到一个控制台窗口,当我运行一个动态编译EXE? [英] Why do I see a console window when I run a dynamically compiled EXE?

查看:78
本文介绍了为什么我看到一个控制台窗口,当我运行一个动态编译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.

唯一奇怪的是,当我运行这个新生成的exe文件,首先一个控制台窗口打开,标题是C:\ calculator.exe

The only weird thing is that when I run this newly generated exe, first a console window opens, the title is "C:\calculator.exe"

然后我calculator.exe程序打开。

and then my calculator.exe program opens.

出于某种原因,它已经开始在控制台窗口,我不知道为什么。

For some reason it is starting the console window and I'm not sure why.

有什么建议?

推荐答案

您使用命令行编​​译器?如果是这样,请尝试使用 /目标:winexe 而不是 /目标:exe文件

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

这篇关于为什么我看到一个控制台窗口,当我运行一个动态编译EXE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆