Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #1357

Re: Call in Visual Basic a Cygwin executable

From Deanna Earley <dee.earley@icode.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Call in Visual Basic a Cygwin executable
Date 2012-07-18 10:09 +0100
Organization Aioe.org NNTP Server
Message-ID <ju5ugn$mtg$1@speranza.aioe.org> (permalink)
References <6ee09681-b78d-4a7b-b083-02a7cf63db4e@googlegroups.com>

Show all headers | View raw


On 18/07/2012 09:12, arkkimede wrote:
> Hi!
> I'm a c programmer that usually produce console application.
> To improve the look of my software, I'm studying Visual Basic.
> The idea is implementing a Graphical User Interface with VB, this produces an input file and execute the cygwin code by mean the instruction
> System.Diagnostic.Process.Start("nome_of_executable.exe")
>
> I joint also that in the directory where is the executable there are all the
> dll required by the cygwin executable to run. In fact, on windows, pushing on the executable it run correctly, but in VB it does not run.

It could be that your cygwin application is relying on the working path 
being set to the executable/dll folder.

System.Diagnostics.ProcessStartInfo info = new 
System.Diagnostics.ProcessStartInfo(@"c:\path\to\nome_of_executable.exe","parameters");
info.WorkingDirectory = @"c:\path\to\";
System.Diagnostics.Process.Start(info);

-- 
Deanna Earley (dee.earley@icode.co.uk)
i-Catcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be ignored. Please reply to the 
group.)

Back to comp.lang.basic.visual.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Call in Visual Basic a Cygwin executable arkkimede <arkkimede@gmail.com> - 2012-07-18 01:12 -0700
  Re: Call in Visual Basic a Cygwin executable Deanna Earley <dee.earley@icode.co.uk> - 2012-07-18 10:09 +0100
  Re: Call in Visual Basic a Cygwin executable arkkimede <arkkimede@gmail.com> - 2012-07-18 02:21 -0700
  Re: Call in Visual Basic a Cygwin executable arkkimede <arkkimede@gmail.com> - 2012-07-18 03:06 -0700
    Re: Call in Visual Basic a Cygwin executable Deanna Earley <dee.earley@icode.co.uk> - 2012-07-18 11:28 +0100
  Re: Call in Visual Basic a Cygwin executable "Farnsworth" <nospam@nospam.com> - 2012-07-18 06:33 -0400
    Re: Call in Visual Basic a Cygwin executable arkkimede <arkkimede@gmail.com> - 2012-07-18 04:45 -0700
      Re: Call in Visual Basic a Cygwin executable "Farnsworth" <nospam@nospam.com> - 2012-07-18 10:56 -0400
        Re: Call in Visual Basic a Cygwin executable "Auric__" <not.my.real@email.address> - 2012-07-18 19:45 +0000
          Re: Call in Visual Basic a Cygwin executable arkkimede <arkkimede@gmail.com> - 2012-07-19 03:09 -0700

csiph-web