ByteArray in c++
In C# to send the post data(WebRequest) I used this code:
string postData = "username=" + UsernameInput.Text + "&password=" +
PasswordInput.Text;
byte[] byteArray = Encoding.UTF8.GetBytes(postData);
How do I import this code to c++.
[UPDATE]:
Thank you all! Thank God MSDN did not disappoint and I found the
information there. I will not be greedy when someone is faced with the
same problem here's the code:
String^ postData = "form_name=loginform&username=" + UsernameInput->Text +
"&password=" + PasswordInput->Text;
array<Byte>^byteArray = Encoding::UTF8->GetBytes(postData);
No comments:
Post a Comment