problem converting string to system:string

  • Thread starter Thread starter Weeke
  • Start date Start date
W

Weeke

Guest
String^ usernameText = username_textBox->Text;
String^ passwordText = password_textBox->Text;

// Check API Login for Auth Code
String^ url = "http://test.com/temp.php?auth=1&username="+usernameText+"&password="+passwordText;
RestClient::Response r = RestClient::get(url->ToString);
String body = r.body;
if (r.body = '0') {

}
this->Hide();
MyForm^ f2 = gcnew MyForm();
f2->ShowDialog();

Any help would be greatly appreciated.

Severity Code Description Project File Line Suppression State
Error C3867 'System::String::ToString': non-standard syntax; use '&' to create a pointer to member Rust_RCS C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tool List\Programs in development\rust-rcs\Rust_RCS\loginForm.h 188

Severity Code Description Project File Line Suppression State
Error C3149 'System::String': cannot use this type here without a top-level '^' Rust_RCS C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tool List\Programs in development\rust-rcs\Rust_RCS\loginForm.h 189

Severity Code Description Project File Line Suppression State
Error C2440 'initializing': cannot convert from 'std::string' to 'System::String ^' Rust_RCS C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tool List\Programs in development\rust-rcs\Rust_RCS\loginForm.h 189

Severity Code Description Project File Line Suppression State
Error C2451 conditional expression of type 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' is illegal Rust_RCS C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Tool List\Programs in development\rust-rcs\Rust_RCS\loginForm.h 190

Continue reading...
 
Back
Top