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

Path csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail
From Deanna Earley <dee.earley@icode.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Re: Call in Visual Basic a Cygwin executable
Date Wed, 18 Jul 2012 10:09:45 +0100
Organization Aioe.org NNTP Server
Lines 29
Message-ID <ju5ugn$mtg$1@speranza.aioe.org> (permalink)
References <6ee09681-b78d-4a7b-b083-02a7cf63db4e@googlegroups.com>
NNTP-Posting-Host rjApkXnSOjrT83QpZ8fKqg.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.basic.visual.misc:1357

Show key headers only | 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