Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

error C2664: 'sql::PreparedStatement::setString' : cannot convert parameter 2 from 'System::String ^' to 'const std::string &' (2 replies)

$
0
0
Hello

I writes a program in Visual Studio 2008 Standard in CLR / C + +.
The problem is that if I want to pass variable to function:
pstmt-> setString (); the control TextBox1-> text as a string.
I tried to convert but the function takes only const string.
How can I pass variables taken from the keyboard and transmit them to the database.
Is there any other feature for that?

Viewing all articles
Browse latest Browse all 527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>