没有:
如何使用FormatMessage()获取错误文本HRESULT?
HRESULT hresult = application.CreateInstance("Excel.Application");
if (FAILED(hresult))
{
// what should i put here to obtain a human-readable
// description of the error?
exit (hresult);
}
Run Code Online (Sandbox Code Playgroud) 我想要一个函数,它将获取一个文件并持续多少天,如果它比那个日期更早,将返回0否则1 ...这样的东西......
例如:
int IsOlder(TCHAR *filename, int days)
{
do operation.
If last modify date was older than days variable
return 0
else
return 1
}
Run Code Online (Sandbox Code Playgroud)
这是适用于Windows的MS VC++ 6.谢谢你们!