473,811 Members | 3,314 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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...whi ch 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 1982

"Ron Vecchi" <rv*****@xilehd vecchi.com> wrote in message
news:eb******** ********@TK2MSF TNGP09.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...whi ch 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*****@xilehd vecchi.com> wrote in message
news:eb******** ********@TK2MSF TNGP09.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...whi ch 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*****@xilehd vecchi.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.publi c.dotnet.langua ges.csharp
| NNTP-Posting-Host: pcp02828467pcs. roylok01.mi.com cast.net 68.85.156.233
| Path:
cpmsftngxa06.ph x.gbl!cpmsftngx a09.phx.gbl!TK2 MSFTNGP08.phx.g bl!TK2MSFTNGP09 .
phx.gbl
| Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.langua ges.csharp:1973 25
| X-Tomcat-NG: microsoft.publi c.dotnet.langua ges.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...whi ch 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 programmaticall y then you can execute
the console app and suppress the creation of the visble console window.

ProcessStartInf o i = new ProcessStartInf o(@"c:\MyDir\my app.exe","args" );
i.CreateNoWindo w = true;
i.UseShellExecu te = false;
i.WindowStyle = ProcessWindowSt yle.Hidden; // not sure if you need this
Process p = new Process();
p.StartInfo = i;
p.Start();
p.WaitForExit() ;
"Ron Vecchi" <rv*****@xilehd vecchi.com> wrote in message
news:eb******** ********@TK2MSF TNGP09.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...whi ch 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
3810
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, and I've tried ConsoleEx which does a great job, but still doesn't handle non-character keys like CTRL and the arrow keys. I've read the character mode apps page on MSDN, and couldn't really make much sense out of it.
7
6362
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 problem double percent_00_01 = 1D / 10000D double percent_00_10 = 1D / 1000D double percent_01_00 = 1D / 100D double percent_10_00 = 10D / 100D
5
11265
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 to avoid the overhead of writing to the console if it is not visible, eg I am running inside a WinForm application. thanks
1
1577
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 project, what settings to change etc. Or point me to a getting starting using VC++ guide that explains the projects and relevant settings. My background is in Java, and the environment is totally different - but I think I want to move towards C,...
6
5717
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 possible to use Console.Writeln when you have a Webservice. I don't think it's possible but just to be sure I ask you?
2
14400
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 proceed further with the program logic. I had a difficulty in implementing this, as console.readline() indefinitely waits for the user input.
5
546
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
10117
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 be able to run this: c:\testing.exe c:\test ....and have 'c:\test' passed to the program as a variable. Most of my VB books focus on web forms or windows forms, but not much details on console
5
10783
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 server. Now, every console program instance will open a command mode window and they occupy the whole screen. I want to minimize all of them and maximize it if neccessary by manual. Is it possible and how to do it? I'm using VB.NET 2005. ...
0
9731
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10405
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9208
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5697
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4342
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3871
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.