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
    Posts
    115

    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", "http://www.mysite.net/login.php?username=" & txtUser & "&password=" & txtPass & "&hwid=" & Text1.Text & "&author=" & Text2.Text, False
    5.     oHTTP.Send
    6.    
    7.     If InStr(oHTTP.ResponseText, "ACCEPTED") Then
    8.              Unload Me
    9.              Form2.Show
    10.         Else
    11.                 MsgBox ("Login Unsucessful! Invalid User Info")
    12.  
    13. End If
    14. End Sub

    Thanks

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

    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
    Location
    Bristol, UK
    Posts
    36,798

    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
    Location
    Sweden
    Posts
    8,013

    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.
    Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.