develooper Front page | perl.beginners | Postings from February 2002

Re: Perl calling Visual Basic

Thread Previous
From:
Jenda Krynicky
Date:
February 22, 2002 08:08
Subject:
Re: Perl calling Visual Basic
Message ID:
3C767AFE.32384.DD8872@localhost
From:           	Chris <chris@candp-ent.com>
> Calling the VB app "should" be fairly straight, if it is local to the
> Perl program...
> 
> @result = `myCompiledVBApp AnyArgs`;
> 
> If the VB App returns anything, the @result should (hopefully???)
> catch it...

I don't think the VB application will print anything to STDOUT.
Maybe he should use system() :

	system 'myCompiledVBApp AnyArgs' == 0
		or die "system('myCompiledVBApp AnyArgs') failed: $?";
	$exit_value  = $? >> 8;

Depends on HOW does the VB app "return" the result.

Jenda


=========== Jenda@Krynicky.cz == http://Jenda.Krynicky.cz ==========
There is a reason for living. There must be. I've seen it somewhere.
It's just that in the mess on my table ... and in my brain.
I can't find it.
					--- me

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About