🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.basic
Article #30

Re: VB question

#30
From: Phillip Cooper
Date: Tue, 04 Aug 1992 18:21
51 lines
2840 bytes
In article <1992Aug3.142953.23094@aber.ac.uk> hrs@aber.ac.uk (Herbert Martin Sauro) writes:
>In article <1992Jul31.151059.26292@cshl.org> boutell@cshl.org (Tom Boutell) writes:
>>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.
>Perhaps I didn't make myself clear. We have a large package written in
>C (made up of a number of subprograms) that runs on many platforms 
>(yes there are other platforms) and many
>of the other implementations have their own `pretty' front ends (it pleases
>the chattering scientific classes) and we thought VB would be the ideal
>development tool with which (ie. ease of programing coupled with excellent
>results) to write the `pretty' front end for Windows. To do this we need to
>be able to call the package and determine, one, when it
>completes and second (related point) what was the status of the
>program when it completed.  I've since been in touch with MS and they 
>are sending some example code to me which will do the job. If anybody is
>interested I could post their answer (assuming it will work).
>
>Herb

Herb.

	There is no way to directly retrieve the return code for a MSDOS
program which you shell from VB.  The best you can do is shell to a batch
file which, in turn, runs your MSDOS executable.  The batch file can then
detect the errorlevel of your MSDOS program and redirect it to a temporary
text file.  You can then read the value from that file into your VB program.

	Your second question (about waiting for a task to complete) is
much tougher, and the document we are sending out to you should answer it.

Phil Cooper 

>-- 
>/******************************************************************************
>Herbert Sauro                                   e-mail: hrs@aber.ac.uk
>Biological Sciences                              phone: +44 970 622353
>Univesity College of Wales                      
Technical Details
Message-ID: <1992Aug04.182102.7508@microsoft.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!philco
References: <1992Jul31.141431.14118@magnus.acs.ohio-state.edu> <1992Jul31.151059.26292@cshl.org> <1992Aug3.142953.23094@aber.ac.uk>

Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.basic
Path: arc1-ca.pugleaf.net!sparky!uunet!microsoft!wingnut!philco
From: philco@microsoft.com (Phillip Cooper)
Subject: Re: VB question
Message-ID: <1992Aug04.182102.7508@microsoft.com>
Date: 04 Aug 92 18:21:02 GMT
Organization: Microsoft Corporation
References: <1992Jul31.141431.14118@magnus.acs.ohio-state.edu> <1992Jul31.151059.26292@cshl.org> <1992Aug3.142953.23094@aber.ac.uk>
Lines: 53