声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 3253|回复: 5

[综合讨论] 关于生成exe后的黑框问题询问

[复制链接]
发表于 2005-12-6 22:12 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
我在写好程序并编译成exe后,总是会有两个界面,一个是图形界面,另外一个就是dos窗口一样的黑框界面,请问一下如何去除那个黑框啊????<BR><BR>也就是只保留图形界面。还请高人指教,偶是新手~~~

[ 本帖最后由 eight 于 2007-10-16 23:15 编辑 ]
回复
分享到:

使用道具 举报

发表于 2005-12-7 08:22 | 显示全部楼层

回复:(wenbinnuaa)关于生成exe后的黑框问题询问,急...

用Compiletoexe好像是关不掉的,建议换Matcom试试看
发表于 2005-12-8 18:17 | 显示全部楼层
<P>用vc++做个漂亮的小界面,调用这个可执行程序不就ok了?在vc++里关掉黑框即可。</P>
发表于 2005-12-12 18:34 | 显示全部楼层

回复:(wenbinnuaa)关于生成exe后的黑框问题询问,急...

  我也非常想知道是怎么做的,如果换成是VB的话,可以做吗?
发表于 2005-12-12 19:56 | 显示全部楼层

回复:(wenbinnuaa)关于生成exe后的黑框问题询问,急...

有关去掉matlab编译黑屏的方法<BR><BR>至于黑屏,这里有个解决的办法,借助于三方 <BR><BR>http://newsreader.mathworks.com/WebX?50@55.5BdEa0Xui5I.0@.eeba9ab <BR><BR>    <BR>MATLAB Central &gt; comp.soft-sys.matlab &gt; archive &gt; A Windows version-independent way to suppress command window for standalones   <BR><BR><BR><BR>Subject: A Windows version-independent way to suppress command window for standalones   <BR><BR><BR>E-mail me when replies are made to this thread <BR>Message 1 in thread <BR>From: Nathan Childress <BR>(sauroneru@hotmail.com) <BR>E-mail me when this author posts <BR>Date: 2003-03-11 11:57:11 <BR><BR>1. Compile your GUI into an exe. We'll call it "foo.exe". <BR>2. Download and install NSIS - the installation program created and <BR>used by the fine folks at Nullsoft (think Winamp): <BR><BR>http://www.nullsoft.com/free/nsis/ <BR><BR>3. Make an NSIS script text file in the same directory as your exe, <BR>let's call it "file.nsi". Put the following text in there: <BR><BR>SilentInstall silent <BR><BR>; The name of the NSIS install program you're creating <BR>Name "NotSeen" <BR><BR>; The file that NSIS writes <BR>OutFile "nocmdwindow.exe" <BR><BR>Section "Ignore" <BR> ; Change this exe file to the name of the exe you created <BR> nsExec::Exec "cmd /C foo.exe" <BR>SectionEnd <BR><BR>4. Save the file and compile it into the new exe ("nocmdwindow.exe") <BR>by right clicking on it and selecting Compile. Or you can open the <BR>"Make NSIS GUI" window and select "Load Script..." from the File menu. <BR><BR>5. Now run "nocmdwindow.exe". As promised, no command window. And <BR>so simple to implement. Plus, if you ever want to see the command <BR>window for diagnostic purposes, you can always run the original exe <BR>file ("foo.exe"), and it will run normally with its glorious DOS <BR>window. <BR><BR>You also have a really easy to use and powerful Windows installer <BR>program that's free. The no command window trick works with NSIS by <BR>calling a dll (nsExec.dll) and running the program through it, <BR>suppressing all text output, but leaving popup windows alone.
发表于 2007-10-16 19:12 | 显示全部楼层
:lol
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-12-12 03:36 , Processed in 0.062640 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表