📜  在 cpp 中使用 MSFT API 的临时文件 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:53.839000             🧑  作者: Mango

代码示例1
using namespace System::Security;using namespace System::IO; ... String tempFolder;try {  tempFolder = Path::GetTempPath();}catch(SecurityException* ex){  // probably means that you don't have the required permissions}catch(Exception* ex){  // handle all other exceptions}