473,386 Members | 1,846 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.

Console App question

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

Nov 15 '05 #1
4 1960

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:eb****************@TK2MSFTNGP09.phx.gbl...
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.
Nov 15 '05 #2
You can do this using SetParent (Win32 api) with HWND_MESSAGE.
Check Platform SDK.

HTH
Alex

"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:eb****************@TK2MSFTNGP09.phx.gbl...
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

Nov 15 '05 #3

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" <rv*****@xilehdvecchi.com>
| 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: <eb**************@TK2MSFTNGP09.phx.gbl>
| 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!TK2MSFTN GP08.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
|
|
|
|

Nov 15 '05 #4
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();
"Ron Vecchi" <rv*****@xilehdvecchi.com> wrote in message
news:eb****************@TK2MSFTNGP09.phx.gbl...
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

Nov 15 '05 #5

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

Similar topics

4
by: Chris Williams | last post by:
Hi... I'm trying to find some code samples that will show me how to capture non-character keypresses in a console app. I've tried the standard stuff, such as console.read and console.readline,...
7
by: shawnk | last post by:
Hello Everyone How do you format format numbers right-justified using Console.WriteLine(), i.e I need to line up numbers in vertical columns and the MSDN documentation is pretty poor Here is the...
5
by: Barry Mossman | last post by:
Hi, can I detect whether my class is running within the context of a Console application, vs say a WinForm's application ? also does anyone know whether the compiler or runtime is smart enough...
1
by: Tarique Jawed | last post by:
Alright - I've been using VS .NET for all of 3 hours now - so pardon the stupidity of my question. Can someone walk me through a simple hello world that outputs to console, in terms of which...
6
by: tony | last post by:
Hello! When you have windows forms you have the same possibility as when you have a Console application to use Console.Writeln to write whatever on the screen. Now to my question: Is it...
2
by: SriBhargav | last post by:
Hi, I've a question on setting timeout on console.readline() I would like the user to input something through Console.readline() in 5 secs. If there is no input in that time, I would like to...
5
by: =?Utf-8?B?VkIgSm9ubmll?= | last post by:
How can I send the Enter or Return keystroke to a VB.Net 2005 console application? -- Coding in Sunny Central Florida
3
by: Alex | last post by:
Hello, I'm wroting a console utility in VB 2005, and I need the ability to pass parameters to the application when the program runs. For example, if my program is called testing.exe, I need to...
5
by: =?Utf-8?B?SmFtZXMgV29uZw==?= | last post by:
Dear all, I'd like to know if there is any method to minimize command mode window when a console program is running. In my case, there are several console programs which run periodically in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.