Results 1 to 5 of 5

Thread: _Send_ data from web to app?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    Sweden - land of the mooses
    Posts
    44

    Question

    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!
    /Hoffe

  2. #2
    bubba
    Guest
    Turn your app into a dll and expose the procedures that contain the code that controls your robot

  3. #3

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    Sweden - land of the mooses
    Posts
    44
    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?
    /Hoffe

  4. #4
    bubba
    Guest
    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")

  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2001
    Location
    Sweden - land of the mooses
    Posts
    44
    That was the EXACT answer I wanted, a brief explanation and the link to the proper place in MSDN.

    Thanks alot!
    /Hoffe

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width