开发者

Using a string in click function of windows form app

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 ?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜