|
-
November 1st, 2008, 08:40 AM
#2
Re: Vb Html Post
If you are trying to pass some variables to a running VB6 program, you probably would not use HTML and POST
HTML and POST are normally reserved for Websites (even though you could be running an internal Intranet which operates like a website if you wish)
If you simply want to pass some info to a running program, even if it is on another machine, the easiest way is to write the variables to a file which the running program could pickup.
The running program would need to either be "WATCHING A DIRECTORY" to see if data has been passed (perhaps in the form of a text file), or would check a known place every nn seconds or milliseconds to see if there has been data "posted"
WATCHING A DIRECTORY is a better method as an interupt is raised only if there is a change in the directory
You can find several examples of WATCH DIRECTORY at www.planetsourcecode.com I should think
heres a good example
http://www.planetsourcecode.com/vb/s...61052&lngWId=1
Writing a file to another machine is reasonably simple - Use either the IP Address or Computername to prefix the file name (and you must have permission to write to that machine - eg, Directory must be shared)
Hope thats what you are looking for
Last edited by George1111; November 2nd, 2008 at 12:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|