RE: problem using OpenNetCF SDF Process class

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: marcog (marcog_at_nres.com)
Date: 09/13/04

  • Next message: Mike: "Re: Debugging question"
    Date: Mon, 13 Sep 2004 12:27:11 -0700
    
    

    I have the same problem. My call requires two parameters, the first of which
    is a number. I found that when the first parameter passed into
    Process.Start() was a number, an extra character was appended to the last
    parameter that was passed into the target exe.

    This only seems to happen when one of the parameters is a number.

    Did you post this question on the OpenNETCF forum?

    "Jose Antonio" wrote:

    > Hi,
    >
    > We are launching an application from a Compact Framework
    > app using the Process class which is available on the
    > OpenNetCF SDF library. When we call "Process.Start" we
    > pass as parameters the path of the executable to launch
    > and the command line parameters.
    >
    > The problem is that the launched app does not receive the
    > parameters correctly.
    >
    > The executable is another Compact Framework application
    > and it needs four arguments:
    >
    > - the path of the application to launch is "\Program
    > Files\AppManager\AppManager.exe".
    > - the commnad line parameter string is "\"\\Program
    > Files\\CCA\\CCA.exe\" user password 1", where "1" is a
    > number which has to be parsed as an integer.
    >
    > The first application passes the parameters correctly, but
    > the launched application receives in that case a "Q"
    > character appended to the end of the string. This only
    > happens when the number "1" is the last character of the
    > command line parameters.
    >
    > Thanks in advance for your help.
    >
    > José Antonio
    >


  • Next message: Mike: "Re: Debugging question"

    Relevant Pages

    • Re: EnableShellOpen() for windows mobile
      ... on the command line (assuming that's where you're ... launching it from, of course). ... Paul T. ... Remote Registry Editor, as what you have there doesn't tell me what I ...
      (microsoft.public.windowsce.embedded.vc)
    • Re: Word crashes when opening file
      ... command isn't being handled it doesn't mean there is a "bug" in the program ... launching Word itself or creating new documents once Word launches, ... duplicate fonts & other font problems aren't likely to be the issue. ... toolbar to open something or press command and "o" the program freezes. ...
      (microsoft.public.mac.office.word)
    • Re: EnableShellOpen() for windows mobile
      ... // Parse command line for standard shell commands, DDE, file open ... Paul T. ... DOT com> a écrit dans le message de news: ... launching it from, of course). ...
      (microsoft.public.windowsce.embedded.vc)
    • Re: set Affinity- access denied
      ... You can do this by launching task manager as the SYSTEM user. ... The easiest way to do that is with the AT command to have the AT scheduler ... Is it possible to set affinity for this kind of process? ...
      (microsoft.public.windows.server.general)
    • Re: expect, spawn with preset variables
      ... >>Sometimes we need to set a certain variable before launching a command. ... >>I tried to do the same thing using spawn in expect, ... > set host 198.132.14.9 ...
      (comp.lang.tcl)