The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Error, function call, declaration mismatch
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

srmcarneir

Brazil
33 Posts

Posted - 11/26/2004 :  1:35:09 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000