473,386 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Compiling an form app via a .bat and cmd.exe. Why command line on load?

Jax
I am creating an executable using CodeDom.
Once the file is written, a batch file is built and runs that compiles the .cs file into an exe.
Everything is fine (well almost, i'm posting twice), but when I run the exe a command prompt/dos like window pops up as well as the form.
The file i'm running at present is IDENTICAL to a completely blank windows form application built with VS.
So why does my version have this command line and why doesn't the ones produced by VS?
I want to minimize or hide this command prompt but because all I am running is: Application.Run(new Form1()); I dont have a handle on it to hide it.
Can anyone help?

Jax
Nov 15 '05 #1
4 3899
Run csc /? and take a look at the options, more precisely the target option.

Willy.

"Jax" <an*******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I am creating an executable using CodeDom.
Once the file is written, a batch file is built and runs that compiles the
.cs file into an exe.
Everything is fine (well almost, i'm posting twice), but when I run the
exe a command prompt/dos like window pops up as well as the form.
The file i'm running at present is IDENTICAL to a completely blank windows
form application built with VS.
So why does my version have this command line and why doesn't the ones
produced by VS?
I want to minimize or hide this command prompt but because all I am
running is: Application.Run(new Form1()); I dont have a handle on it to
hide it.
Can anyone help?

Jax

Nov 15 '05 #2
Hi Jax,
That is because your application is compiled as a an console application.
You should compile it with option /target:winexe

--
HTH
B\rgds
100

"Jax" <an*******@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
I am creating an executable using CodeDom.
Once the file is written, a batch file is built and runs that compiles the ..cs file into an exe. Everything is fine (well almost, i'm posting twice), but when I run the exe a command prompt/dos like window pops up as well as the form. The file i'm running at present is IDENTICAL to a completely blank windows form application built with VS. So why does my version have this command line and why doesn't the ones produced by VS? I want to minimize or hide this command prompt but because all I am running is: Application.Run(new Form1()); I dont have a handle on it to hide
it. Can anyone help?

Jax

Nov 15 '05 #3
Jax
Thanks for that Stoitcho, thanks also to Willy, I couldn't get up the list of possibilites because i've got fu*king XP which doesn't allow you to have a large sized cmd prompt, so I couldn't actually see all of the definitions, I then caught up in something else and forgot about it
Does anyoe know how I can get a version of dos that runs in a large window? On XP?
Nov 15 '05 #4
=?Utf-8?B?SmF4?= <an*******@discussions.microsoft.com> wrote in
news:1F**********************************@microsof t.com:

Thanks for that Stoitcho, thanks also to Willy, I couldn't get up the
list of possibilites because i've got fu*king XP which doesn't allow
you to have a large sized cmd prompt, so I couldn't actually see all
of the definitions, I then caught up in something else and forgot
about it. Does anyoe know how I can get a version of dos that runs in
a large window? On XP?


Last time I checked xp (and pretty much all the other flavors of windows)
let you change the size of the console window. I definately changed mine
(on xp pro).

Mark
Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Andres Rosado-Sepulveda | last post by:
Hello, I'm having trouble compiling PHP 4.3.4 on Solaris 8. This is the error message it is showing: -- start -- Undefined first referenced symbol ...
0
by: Norm Wong | last post by:
If anyone is interested in using db2uext2 with Cygwin gcc compiler on Windows, I've modified the IBM provided sample with the attached file. There are two main modifications. The mkdir command...
0
by: Louise Caldicott | last post by:
Hi all, I have created a project in Visual Studio which uses satellite assemblies. I have also written a script to build this project from the command line. There seems to be a difference in...
4
by: bryan | last post by:
I'm still using Beta 2 of VS2005. I'd like to be able to precompile my web site (similar to 1.x) so that I don't have to put source files on the deployment server. Is there anyway to do this other...
0
by: Kirt Loki Dankmyer | last post by:
So, I download the latest "stable" tar for perl (5.8.7) and try to compile it on the Solaris 8 (SPARC) box that I administrate. I try all sorts of different switches, but I can't get it to compile....
0
by: follower | last post by:
This post is mostly Google-bait for anyone else that might want to compile SpiderMonkey ( libjs / libjs.so / libjs.dylib ) for OS X (10.4.5 in my case) and then use it with Python's ctypes. I can't...
3
by: sjt003 | last post by:
I have been developing web apps in Visual Studio 2003, but since the other developers in my office don't use Visual Studio, I may have to stop too unless there is an efficient way for them to...
5
by: Eric | last post by:
Hi, I want to generate a dll for x64. In the project, I specify the platform target x64 but VS2005 use the win32 framework. Here is the warnings that I get : ...
1
by: 85ssp | last post by:
I am working on debugging a multithreaded network application. I have two forms. One of which is my testing form, the other is the actual user form. I need to be able to load only my testing form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.