필터 지우기
필터 지우기

Stand alone executable command prompt

조회 수: 3 (최근 30일)
Bryan Van Dyke
Bryan Van Dyke 2011년 2월 14일
I have MATLAB 7.9.529 (R2009B) running on a Windows XP system. I use deploytool to build a stand alone executable. The executable module consists on one GUI with various menu items and calculation buttons. When I package the executable, I include the MCRInstaller. I am able to successfully install the package on the target machine.
My question is: When I execute the install stand alone executable on the target machine, I Windows command prompt opens and remains open the entire time executable remains open. Why is this and how can I get rid of this? I have reviews several webnairs on this subject and none of the examples they use exhibit this behaivour?
Thanks,
Bryan

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2011년 2월 14일
Build as "Windows Standalone Application"
  댓글 수: 2
Bryan Van Dyke
Bryan Van Dyke 2011년 2월 14일
I do build it as a Windows Standalone Application. Is there some other environment I need to set?
thanks
Kaustubha Govind
Kaustubha Govind 2011년 2월 16일
No, you shouldn't have to set anything else. I'm surprised that this doesn't work. Does you application attempt to run anything from the system command prompt?

댓글을 달려면 로그인하십시오.


Matthew Whitaker
Matthew Whitaker 2011년 2월 14일
On your mcc command you need to add the -e flag. Note you need to use a Microsoft compiler for this to work (like Visual Studio express)
See http://www.mathworks.com/support/compilers/R2010b/index.html for supported compilers

Sanjeet kumar
Sanjeet kumar 2011년 2월 26일
Hi All,
I have developed few Stand alone GUI in MATLAB which run fine on my machine( The machine on which i have developed the executable). But I am not able to run the same on any other machine. Even they have MATLAB or MCR installed in it.
Could you guys please help me on this? It will be very kind.
Thanks in advance.. Please mail be at san.ank9@gmail.com
Regards, Sanjeet Kumar Singh
  댓글 수: 2
Kaustubha Govind
Kaustubha Govind 2011년 2월 28일
Sanjeet: Please start a new question for this. Note that you only add an "answer" to an existing question if you are attempting to resolve it. See http://www.mathworks.com/matlabcentral/about/answers/ for best pratices.
Sanjeet kumar
Sanjeet kumar 2011년 3월 3일
Thanks Govind. I have started a new question http://www.mathworks.com/matlabcentral/answers/2401-how-to-create-standalone-executable-which-can-run-on-other-machine-too Could you please check it out if you can help me on this
Thanks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 C Shared Library Integration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by