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

Re: Perl calling Visual Basic

Thread Previous
Jenda Krynicky
February 22, 2002 08:08
Re: Perl calling Visual Basic
Message ID:
From:           	Chris <>
> 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.


=========== == ==========
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About