721875440 发表于 2019-12-30 16:45:29

检验构造函数调用成功与否

Image myImage(L"Climber.jpg");

Status st = myImage.GetLastStatus();



if(Ok == st)

   // The constructor was successful. Use myImage.

else if(InvalidParameter == st)

   // The constructor failed because of an invalid parameter.

else

   // Compare st to other elements of the Status

   // enumeration or do general error processing.

页: [1]
查看完整版本: 检验构造函数调用成功与否