R
rachit.goyal
Hi All,
I am using .net first time.In my windows form VC7 application, on a
click of button, I am assigning text of TextBox to STL string varibale.
Using this code-
private: System::Void FindValuesButton_Click(System::Object * sender,
System::EventArgs * e)
{
string fileLoc ;
fileLoc= CD_location->Text->ToString();
.......
}
I am getting error-
'initializing' : cannot convert from 'System::String __gc *' to
std::basic_string<_Elem,_Traits,_Ax>'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
I think this is due to manage class problem. Could anyone tell me, how
can I assign text box value to STL string. Can I use STL string in
VC++.net application.
Regards,
Rachit
I am using .net first time.In my windows form VC7 application, on a
click of button, I am assigning text of TextBox to STL string varibale.
Using this code-
private: System::Void FindValuesButton_Click(System::Object * sender,
System::EventArgs * e)
{
string fileLoc ;
fileLoc= CD_location->Text->ToString();
.......
}
I am getting error-
'initializing' : cannot convert from 'System::String __gc *' to
std::basic_string<_Elem,_Traits,_Ax>'
with
[
_Elem=char,
_Traits=std::char_traits<char>,
_Ax=std::allocator<char>
]
I think this is due to manage class problem. Could anyone tell me, how
can I assign text box value to STL string. Can I use STL string in
VC++.net application.
Regards,
Rachit