Console App question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ron Vecchi

    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



  • Michael A. Covington

    #2
    Re: Console App question


    "Ron Vecchi" <rvecchi@xilehd vecchi.com> wrote in message
    news:ebL%23fBMp DHA.2140@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > 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?[/color]

    Make it be a Windows app with no main window.


    Comment

    • AlexS

      #3
      Re: Console App question

      You can do this using SetParent (Win32 api) with HWND_MESSAGE.
      Check Platform SDK.

      HTH
      Alex

      "Ron Vecchi" <rvecchi@xilehd vecchi.com> wrote in message
      news:ebL%23fBMp DHA.2140@TK2MSF TNGP09.phx.gbl. ..[color=blue]
      > 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
      >
      >
      >[/color]


      Comment

      • Jeffrey Tan[MSFT]

        #4
        RE: Console App question


        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" <rvecchi@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: <ebL#fBMpDHA.21 40@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
        |
        |
        |
        |

        Comment

        • Dave

          #5
          Re: Console App question

          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" <rvecchi@xilehd vecchi.com> wrote in message
          news:ebL%23fBMp DHA.2140@TK2MSF TNGP09.phx.gbl. ..[color=blue]
          > 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
          >
          >
          >[/color]


          Comment

          Working...