Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.basic.visual.misc > #1356 > unrolled thread
| Started by | arkkimede <arkkimede@gmail.com> |
|---|---|
| First post | 2012-07-18 01:12 -0700 |
| Last post | 2012-07-19 03:09 -0700 |
| Articles | 10 — 4 participants |
Back to article view | Back to comp.lang.basic.visual.misc
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
| From | arkkimede <arkkimede@gmail.com> |
|---|---|
| Date | 2012-07-18 01:12 -0700 |
| Subject | Call in Visual Basic a Cygwin executable |
| Message-ID | <6ee09681-b78d-4a7b-b083-02a7cf63db4e@googlegroups.com> |
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.
Could you help me?
TIA
[toc] | [next] | [standalone]
| From | Deanna Earley <dee.earley@icode.co.uk> |
|---|---|
| Date | 2012-07-18 10:09 +0100 |
| Message-ID | <ju5ugn$mtg$1@speranza.aioe.org> |
| In reply to | #1356 |
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.)
[toc] | [prev] | [next] | [standalone]
| From | arkkimede <arkkimede@gmail.com> |
|---|---|
| Date | 2012-07-18 02:21 -0700 |
| Message-ID | <0bbf8ade-3b14-4b17-9d6d-39fec48518f8@googlegroups.com> |
| In reply to | #1356 |
On Wednesday, July 18, 2012 10:12:34 AM UTC+2, 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. > > Could you help me? > TIA Thank you for your kind answer. I'm a newbie of Visual Basic and, may be, I need more information. Writing _only_ the code that you have posted (on a button click event) in Visual Basic there is an error: <<'info' is not declared. It may be inaccessible due to its protection level>> It's necessary declare info before? Tanks
[toc] | [prev] | [next] | [standalone]
| From | arkkimede <arkkimede@gmail.com> |
|---|---|
| Date | 2012-07-18 03:06 -0700 |
| Message-ID | <6a0c3204-4fe7-4122-8585-1b2f90bb816d@googlegroups.com> |
| In reply to | #1356 |
I solved (following the suggestions of Deanna Earley). For newbie like me I post the complete button click event: Private Sub Button1_Click(........) Dim info As New System.Diagnostics.ProcessStartInfo info.FileName = "C:\path\nameExecutable.exe" info.WorkingDirectory ="c:\path\" System.Diagnostics.Process.Start(info) End Sub bye.
[toc] | [prev] | [next] | [standalone]
| From | Deanna Earley <dee.earley@icode.co.uk> |
|---|---|
| Date | 2012-07-18 11:28 +0100 |
| Message-ID | <ju633v$1r3$1@speranza.aioe.org> |
| In reply to | #1359 |
On 18/07/2012 11:06, arkkimede wrote: > I solved (following the suggestions of Deanna Earley). > > For newbie like me I post the complete button click event: > Private Sub Button1_Click(........) > Dim info As New System.Diagnostics.ProcessStartInfo > info.FileName = "C:\path\nameExecutable.exe" > info.WorkingDirectory ="c:\path\" > System.Diagnostics.Process.Start(info) > End Sub That's it. Sorry, I forgot my code was C# :) -- 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.)
[toc] | [prev] | [next] | [standalone]
| From | "Farnsworth" <nospam@nospam.com> |
|---|---|
| Date | 2012-07-18 06:33 -0400 |
| Message-ID | <ju63dd$354$1@speranza.aioe.org> |
| In reply to | #1356 |
"arkkimede" <arkkimede@gmail.com> wrote in message
news:6ee09681-b78d-4a7b-b083-02a7cf63db4e@googlegroups.com...
> 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.
>
> Could you help me?
> TIA
For future reference, this group usually deals with VB6 and lower, and most
of the people who hang in here use it. For VB.Net, use this forum:
http://social.msdn.microsoft.com/Forums/en-US/category/visualbasic/
The two languages have major differences and there is no reliable automated
way to upgrade between the two. Upgrading often requires a rewrite. VB6 is
the last version that is not reliant on the .Net runtime. VB6 runtime is
included in Windows 2000 through Windows 8, so pretty much you need just to
distribute the EXE, however it was released on 1998, so perhaps you may want
to stick with C.
Also, VB.Net/C# require the .Net library, which can take a long time to
update as it's several hundred MB. This may or may not be important to you.
Why not stick with C and use Qt or GTK+? Both are multiplatform and have
small runtime:
http://en.wikipedia.org/wiki/Qt_%28framework%29
http://en.wikipedia.org/wiki/GTK%2B
[toc] | [prev] | [next] | [standalone]
| From | arkkimede <arkkimede@gmail.com> |
|---|---|
| Date | 2012-07-18 04:45 -0700 |
| Message-ID | <5c8e88a6-6538-4f7e-9d80-2498ea6a8f98@googlegroups.com> |
| In reply to | #1361 |
On Wednesday, July 18, 2012 12:33:00 PM UTC+2, Farnsworth wrote: > For future reference, this group usually deals with VB6 and lower, and most > of the people who hang in here use it. For VB.Net, use this forum: > > http://social.msdn.microsoft.com/Forums/en-US/category/visualbasic/ > Sorry! I'm a newbie and I didn't know the difference between the two languages. In any case tank you for this information. > Why not stick with C and use Qt or GTK+? Both are multiplatform and have > small runtime: > > http://en.wikipedia.org/wiki/Qt_%28framework%29 > http://en.wikipedia.org/wiki/GTK%2B I explored these languages and VB seems to me the easier. Usually every language, after the classical application "Hello, World", become complex and it is hard to find examples that introduce, step by step, all the language elements. Thank you.
[toc] | [prev] | [next] | [standalone]
| From | "Farnsworth" <nospam@nospam.com> |
|---|---|
| Date | 2012-07-18 10:56 -0400 |
| Message-ID | <ju6is9$ami$1@speranza.aioe.org> |
| In reply to | #1362 |
"arkkimede" <arkkimede@gmail.com> wrote in message news:5c8e88a6-6538-4f7e-9d80-2498ea6a8f98@googlegroups.com... > On Wednesday, July 18, 2012 12:33:00 PM UTC+2, Farnsworth wrote: >> Why not stick with C and use Qt or GTK+? Both are multiplatform and have >> small runtime: >> >> http://en.wikipedia.org/wiki/Qt_%28framework%29 >> http://en.wikipedia.org/wiki/GTK%2B > > I explored these languages and VB seems to me the easier. > Usually every language, after the classical application "Hello, World", > become complex and it is hard to find examples that introduce, step by > step, all the language elements. Here is another Basic variant I am considering, which costs 79 Euro(about $104 USD), so it's not expensive. http://en.wikipedia.org/wiki/PureBasic http://www.purebasic.com/ I develop mostly shareware, and so it's important to me to have minimum dependency.
[toc] | [prev] | [next] | [standalone]
| From | "Auric__" <not.my.real@email.address> |
|---|---|
| Date | 2012-07-18 19:45 +0000 |
| Message-ID | <XnsA09481F2B44E0auricauricauricauric@88.198.244.100> |
| In reply to | #1367 |
Farnsworth wrote: > "arkkimede" <arkkimede@gmail.com> wrote in message > news:5c8e88a6-6538-4f7e-9d80-2498ea6a8f98@googlegroups.com... >> On Wednesday, July 18, 2012 12:33:00 PM UTC+2, Farnsworth wrote: >>> Why not stick with C and use Qt or GTK+? Both are multiplatform and have >>> small runtime: >>> >>> http://en.wikipedia.org/wiki/Qt_%28framework%29 >>> http://en.wikipedia.org/wiki/GTK%2B >> >> I explored these languages and VB seems to me the easier. >> Usually every language, after the classical application "Hello, World", >> become complex and it is hard to find examples that introduce, step by >> step, all the language elements. > > Here is another Basic variant I am considering, which costs 79 Euro(about > $104 USD), so it's not expensive. > > http://en.wikipedia.org/wiki/PureBasic > http://www.purebasic.com/ > > I develop mostly shareware, and so it's important to me to have minimum > dependency. I suggest FreeBASIC: http://www.freebasic.net/ Completely free and open source. Largely based on QBasic. GUI via Win32 API (and probably also standard resource scripts, but I've never tried), wxWindows, and GTK; curses, Allegro, and the usual MS BASIC stuff (PRINT, simple graphics, etc.) for console stuff. Supports Windows, Linux, and DOS. (Theoretically, FreeBSD and the XBOX, too, but I've never tried either.) Alternately, if you're after easy window design, you might want to look into Real Studio: http://www.realsoftware.com/realstudio/ Not free (starts at US$99, up to US$995), not open source, and not terribly similar to MS BASIC, but IMO the easiest GUI design outside of MS's products, and no dependancy on the .Net framework. Supports Windows, Linux, and Mac OS X. (Older versions support pre-X Mac OS; I use a version from 2005.) Most of my work is currently done in FreeBASIC, but REALbasic (an older version of Real Studio) is what I use for cross-platform GUI development. -- Las Vegas is a three-ring circus with a hangover.
[toc] | [prev] | [next] | [standalone]
| From | arkkimede <arkkimede@gmail.com> |
|---|---|
| Date | 2012-07-19 03:09 -0700 |
| Message-ID | <a332d9cc-4589-44f0-9a52-4b405f95a4c4@googlegroups.com> |
| In reply to | #1375 |
On Wednesday, July 18, 2012 9:45:50 PM UTC+2, Auric__ wrote: Many tanks to Auric and Farnsworth for suggestions
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.basic.visual.misc
csiph-web