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:
Private Sub Command1_Click()
Dim oHTTP As WinHttp.WinHttpRequest
Set oHTTP = New WinHttp.WinHttpRequest
oHTTP.Open "GET", "http://www.mysite.net/login.php?username=" & txtUser & "&password=" & txtPass & "&hwid=" & Text1.Text & "&author=" & Text2.Text, False
oHTTP.Send
If InStr(oHTTP.ResponseText, "ACCEPTED") Then
Unload Me
Form2.Show
Else
MsgBox ("Login Unsucessful! Invalid User Info")
End If
End Sub
Thanks
Re: Translating from vb6 to C++ 2008
Perhaps you should ask the folks in the C++ forum
Re: Translating from vb6 to C++ 2008
Thread moved from the 'VB6' forum to the 'C/C++' forum
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++?