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
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Error, function call, declaration mismatch

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000