|
-
Apr 17th, 2001, 10:56 AM
#1
Thread Starter
Member
Hiya!
I have a small VB6-written app which is controlling a small robot driving around in my office with a webcam on its back. I can only run this app from my own computer.
Since its pretty bloody boring for me to drive the webcam around (i know what my office looks like) Id like to make it possible for web-visitors to steer it.
In other words: Id like a couple of buttons, "Forward" and "Turn" which should send the command to my app. I guess I could reload the page with ?drive=forward strings, but then how to pass them to my lil app?
Any help is deeply appreciated.
Thanks!
-
Apr 17th, 2001, 11:19 AM
#2
Turn your app into a dll and expose the procedures that contain the code that controls your robot
-
Apr 17th, 2001, 11:59 AM
#3
Thread Starter
Member
Ow, thanks. That set me off in the proper direction, but I feel Im a bit to much newbie for this. How do I send and retrieve data in a DLL then?
I guess I could send it like this steer.dll?dir=forward, but how do I fetch the lil "dir=forward" in my dll?
-
Apr 17th, 2001, 12:15 PM
#4
go to http://msdn.microsoft.com/library/de...e/dll_512r.htm
There are links that explain dll's.
But to quickly answer your question:
Say your app is Named RobotControl and has a module called Main and Main has a Sub called ChangeDirection and it expects a passed parameter called strDirection:
Public Sub ChangeDirection (ByVal strDirection as String)
You would make this sub public in your DLL and would call it in your asp like this:
'Declare a variable and reference your app
Set objRobot = Server.CreateObject("RobotControl.Main")
when the user presses whatever button, call the dll:
objRobot.ChangeDirection("forward")
-
Apr 17th, 2001, 12:20 PM
#5
Thread Starter
Member
That was the EXACT answer I wanted, a brief explanation and the link to the proper place in MSDN.
Thanks alot!
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
|