Translating from vb6 to C++ 2008-VBForums
Results 1 to 4 of 4

Thread: Translating from vb6 to C++ 2008

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2011

    Exclamation Translating from vb6 to C++ 2008

    I have a login form made with VB6 and wont to use C++ 2008 , can someone translate this code for it please ..

    Login Code:
    1. Private Sub Command1_Click()
    2. Dim oHTTP As WinHttp.WinHttpRequest
    3. Set oHTTP = New WinHttp.WinHttpRequest
    4.     oHTTP.Open "GET", "" & txtUser & "&password=" & txtPass & "&hwid=" & Text1.Text & "&author=" & Text2.Text, False
    5.     oHTTP.Send
    7.     If InStr(oHTTP.ResponseText, "ACCEPTED") Then
    8.              Unload Me
    9.              Form2.Show
    10.         Else
    11.                 MsgBox ("Login Unsucessful! Invalid User Info")
    13. End If
    14. End Sub


  2. #2
    Hyperactive Member Lenggries's Avatar
    Join Date
    Sep 2009

    Re: Translating from vb6 to C++ 2008

    Perhaps you should ask the folks in the C++ forum

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Bristol, UK

    Re: Translating from vb6 to C++ 2008

    Thread moved from the 'VB6' forum to the 'C/C++' forum

  4. #4
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005

    Re: Translating from vb6 to C++ 2008

    Do you have anything written in C++ at the moment? The reason I ask is that the code you posted feels a bit taken out of its context.
    Why are you looking to convert that piece of code to C++?
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Me on.. BitBucket, Google Code, Github (pretty empty)

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