Can anybody help me in finding out how to verify that _tmkdir succeeded.
For example i wish to create a file within another folder. This folder i will create at runtime. So i will give the following command.
sFilePath = sFilePath + _T("\\P-Series Communication Logs");
_tmkdir( sFilePath );
where sFilePath would initially contain a software installation path which will be obtained from registry.
i wish to know if _tmkdir succeeded or not.
Thanks
You can check the return value of
_tmkdirto see if the call succeeded. If it failed, theerrnoglobal variable indicates the reason for failure:For more information, look at the MSDN documentation for
_tmkdirhere anderrnohere.I hope this helps!