Console App question

  • Thread starter Thread starter Ron Vecchi
  • Start date Start date
R

Ron Vecchi

I am looking for a way to write xml data to file from a macromedia flash
executable. I was thinking about haveing flash call a console app with a
parameter...which is the xml string to write to file.

But is there a way to supress the console window from poping up. So there
is no visual effect of calling the console app?
 
Ron Vecchi said:
I am looking for a way to write xml data to file from a macromedia flash
executable. I was thinking about haveing flash call a console app with a
parameter...which is the xml string to write to file.

But is there a way to supress the console window from poping up. So there
is no visual effect of calling the console app?

Make it be a Windows app with no main window.
 
Hi Ron,

If you do not want to let the console window pop up, I think you will not
do output or input to console window, so you can do it in winform
application.
You can create a winform application without window. Simply, I think you
can just change your console application's "Output Type" from "Console
application" to "Windows Applicaiton", then the window will not popup.

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Ron Vecchi" <[email protected]>
| Subject: Console App question
| Date: Thu, 6 Nov 2003 18:48:43 -0500
| Lines: 12
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.0
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Message-ID: <ebL#[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: pcp02828467pcs.roylok01.mi.comcast.net 68.85.156.233
| Path:
cpmsftngxa06.phx.gbl!cpmsftngxa09.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:197325
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I am looking for a way to write xml data to file from a macromedia flash
| executable. I was thinking about haveing flash call a console app with a
| parameter...which is the xml string to write to file.
|
| But is there a way to supress the console window from poping up. So there
| is no visual effect of calling the console app?
|
| --
| Ron Vecchi
|
|
|
|
 
You can do this using SetParent (Win32 api) with HWND_MESSAGE.
Check Platform SDK.

HTH
Alex
 
If you are executing the console app programmatically then you can execute
the console app and suppress the creation of the visble console window.

ProcessStartInfo i = new ProcessStartInfo(@"c:\MyDir\myapp.exe","args");
i.CreateNoWindow = true;
i.UseShellExecute = false;
i.WindowStyle = ProcessWindowStyle.Hidden; // not sure if you need this
Process p = new Process();
p.StartInfo = i;
p.Start();
p.WaitForExit();
 
Back
Top