Just a curious question.
Is it possible to get the editor to allow the use of strings in a click function of a design project?开发者_运维百科 Say for this function that was created when the click button was created:
System::Void Form1::Calculate_Click(System::Object^ sender, System::EventArgs^ e)
When I try to create a string within the function with the normal approach 'String variable-name', I get this answer:
'System::String' : cannot use this type here without a top-level '^'
Have you tried System::String^ variable_name
?
精彩评论