vb6 Sending Data

Discussion in 'Software' started by mastermosley, Sep 26, 2006.

  1. mastermosley

    mastermosley Sergeant

    Thank GOD for Majorgeeks or I would never get anywhere, anyways Ok i have an application on my computer made from vb6 but I want to make it so everytime the application turns on it sends data to my website which will say servers on, and when I shut it off it would do the opposite.

    Any Ideas?
     
  2. matt.chugg

    matt.chugg MajorGeek

    You need to be more specific,

    If you have asp(.net) or php on your webserver you could just request a page wit hthe info in a querystring :

    http://bleh.bleh.bleh/data.aspx?staus=on

    The your webserver can look at the querystring and see whether its been turned on or off and store the value until it changes.
     
  3. mastermosley

    mastermosley Sergeant

    Its in php but its not on a home server it webhosting. I know how i could do it if it was on my computer I need to know how to send the data to my websites database.
     
  4. Kodo

    Kodo SNATCHSQUATCH

    man, if you'd only drop vb6 and go hero with .net, then you could do this in about 10 minutes..or less.

    any way, my vb6 is real rusty but the concept is that you need to make a dbconnection to the db on the server just like anything else you've done, only the conn will over the net..
     
  5. matt.chugg

    matt.chugg MajorGeek

    My idea works!

    Not sure a webhosting company will allow an oledb connection from out side.

    I'd use the querystring tags to set the status on and off and just have a script store the value on the server so other pages can read it.

    Unles kodo has any other ideas..
     
  6. Kodo

    Kodo SNATCHSQUATCH

    I connect to my sql server with no problem on my webhost. See, this is the sort of thing that web services were made for.

    Your idea does work, but it will bork if the data in the querystring is too long. It's probably a better idea to the MSXMLHTTP object and post the values to the server.
     
  7. matt.chugg

    matt.chugg MajorGeek

    Actually POST would be better than trying to send data in a GET
     
  8. Kodo

    Kodo SNATCHSQUATCH

    XMLHTTP object has a method property which you can set to POST or GET :)
     
  9. mastermosley

    mastermosley Sergeant

    Ok thanks for the info, as for the Switching to Vb.net I have already tried I even have the software:) but I got lost as soon as I opened it.
     
  10. Kodo

    Kodo SNATCHSQUATCH

    www.learnvisualstudio.net
    You got to start someplace, why not with video's. You're making your life really hard. Yes, there is a learning curve, but we can help with that :)
     
  11. mastermosley

    mastermosley Sergeant

    Ok I dont no how i would connect to my database and edit and entry via xmlhttp

    I have public xml as new xmlhttp

    xml.open "POST" after that I dont no what to do
     
    Last edited: Oct 2, 2006
  12. mastermosley

    mastermosley Sergeant

    Ok well i use a Mysql database and i looked all over the web so I might just use a query string. Couldn't I make the program shell internet explorer and send the data in the link? and when I close it do the same thing?
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds