开发者

Using a string in click function of windows form app

开发者 https://www.devze.com 2023-03-19 08:16 出处:网络
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 butt

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

精彩评论

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

关注公众号