Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Capture VB output from Java


  • Please log in to reply

#1
codecraig

codecraig

    Member

  • Member
  • PipPip
  • 61 posts
Ok,
I basically want to take a VB app (which has no GUI, just does some background work) and writes it output somehow. I can't use MsgBox since that creates pop ups, and I dont want to write to a text file and then read it in from java.

In java I do something like

Process p = Runtime.getRuntime().exec("MyVBApp.exe");
int val = -1;
while ( (val = p.getInputStream().read()) != -1) {
System.out.print((char) val);
}


....that's what I want to do in java...but i cant get anything from the input stream b/c the VB app doesn't write to it.....how can I write to it from VB?

thanks.
  • 0

Advertisements


#2
ratmilk

ratmilk

    Member

  • Member
  • PipPipPip
  • 151 posts
If you wrote the VB app, you could dump it to a text file, then read it via java.
  • 0

#3
codecraig

codecraig

    Member

  • Topic Starter
  • Member
  • PipPip
  • 61 posts
yea I know I could dump it to a file, but as I mentioned in the first post i was looking for some other way than using a text file.
  • 0

#4
ratmilk

ratmilk

    Member

  • Member
  • PipPipPip
  • 151 posts
I don't know, you may have to intercept the window's messages.
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP