| T O P I C R E V I E W |
| srmcarneir |
Posted - 11/26/2004 : 1:35:09 PM Origin Version (Select Help-->About Origin): OriginPro 7.5 SR4 Operating System: Win2k
Hi All,
Has function GetFileAttributesEx (mswin.h) been updated somehow, from OriginPro version 7.0 SR4 to 7.5 SR4? Our code compiled properly under the former and now presents an error message under the latter such as:
"Error, function call and declaration mismatch"
We compared the function declaration into mswin.h for both versions 7.0SR4 and 7.5SR4 and they seemed to be exactly the same.
Here you are our source code:
// some variable declarations ...
if(GetFileAttributesEx(lpcszFilename, 0, &fileInfo)) { if ( FileTimeToSystemTime(&fileInfo.ftLastWriteTime, &stSystemTime) ) { switch (iOption) { case 1: strMonth = FormatMonthMMM ( stSystemTime.wMonth ); // Date: DD-MMM-YYYY strReturn.Format("%02d-%s-%d", stSystemTime.wDay, strMonth, stSystemTime.wYear); return strReturn; break; case 2: // Time: HH:MM:SS strReturn.Format("%02d:%02d:%02d", (stSystemTime.wHour - 3), stSystemTime.wMinute, stSystemTime.wSecond); return strReturn; break; default: return "Wrong Option! Please see function scope."; break; } } }
By the way, this is my first time using version 7.5 SR4.
Thanks to all in advance!
Best Regards,
Ricardo Carneiro |
|
|