Thread View: alt.lang.basic
3 messages
3 total messages
Started by Herbert Martin Sauro
Fri, 31 Jul 1992 10:46
Re: VB question
Author: Herbert Martin Sauro
Date: Fri, 31 Jul 1992 10:46
Date: Fri, 31 Jul 1992 10:46
19 lines
1233 bytes
1233 bytes
Dear netters, Now I don't know if this is the right place to ask this but I have a problem with the shell command in visual basic. Maybe this question has already been answered. My problem is this. We have a C application (non-windows) which we want to run from a friendly front end written in VB. The C program returns a status value when it exits indicating whether all went well or not. How does one obtain this return value if the C program is called from VB. The shell command returns the task number. I also assume that both the C program and VB will be running in parallel so how does one know when the C application has completed? Thanks Herb -- /****************************************************************************** Herbert Sauro e-mail: hrs@aber.ac.uk Biological Sciences phone: +44 970 622353 Univesity College of Wales
Re: VB question
Author: Unrecoverable Application Error
Date: Fri, 31 Jul 1992 14:14
Date: Fri, 31 Jul 1992 14:14
31 lines
2062 bytes
2062 bytes
In article <1992Jul31.104616.13026@aber.ac.uk> hrs@aber.ac.uk (Herbert Martin S auro) writes: +Dear netters, + +Now I don't know if this is the right place to ask this but I have +a problem with the shell command in visual basic. Maybe this question Yes, this is the right place to ask this!!! There are several VB users reading this group. +has already been answered. My problem is this. We have a C application +(non-windows) which we want to run from a friendly front end written in VB. +The C program returns a status value when it exits indicating whether all +went well or not. How does one obtain this return +value if the C program is called from VB. The shell command returns the +task number. I also assume that both the C program and VB will be running +in parallel so how does one know when the C application has completed? + I don't consider myself particularly expert in VB but I'll assume that you want to include your C object file when you compile and use some kind of error level checker to verify completion status. Any of you more experienced VB users should jump in here and feel free to tell me I'm full of something! Keith. -- D.K.Higgs DATA+@osu.edu a.k.a dhiggs@magnus.acs.ohio-state.edu _____ __o Ohio State University Libraries, Acquisitions Department ----- -\<, Continuation Acquisition Division ----- ( )/ ( ) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\_________/~~~~~~~~~~~~~~~~~~~
Re: VB question
Author: Tom Boutell
Date: Fri, 31 Jul 1992 15:10
Date: Fri, 31 Jul 1992 15:10
16 lines
993 bytes
993 bytes
You're full of something. (: Just kidding, but he's talking about running an outside program with the SHELL command, not linking his C code into his Visual BASIC program. That said, though, linking it in as a dynamic link library is probably a better idea if you have the C source and can set it up as such. Unfortunately I'm not a VB hacker myself, so I'm afraid I can't help you with the details. -- Tom Boutell (Editor, VOICE Magazine) boutell@cshl.org Believe it or not there is life after college. At least if you live near NYC.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads