开发者

how define handle object in c++/CLR

MyPractice ^shan=gcnew MyPractice (L"Shahnawaz Talpur");

This executes well but I want to first declare variable ^shan and the ass开发者_如何学JAVAign the value how it could be


Use nullptr :

// Declare and assign null
MyPractice^ shan = nullptr;

// Later when you need :
shan = gcnew MyPractice(L"Shahnawaz Talpur");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜