some basic filing stuff

Started by raymw, August 12, 2019, 03:42:46 PM

Previous topic - Next topic

Paul Squires

LOL - yup, use Jose's Afx code  :)
Paul Squires
PlanetSquires Software

James Fuller

In this link I describe an issue with gcc and dates on Windows with msvcrt.dll.
https://www.oxygenbasic.org/forum/index.php?topic=1947.0
José; are there API calls that will produce the correct results??

James



James Fuller

José,
The line in question is:

strftime (buffer, SIZE, "ISO week day is %GW%V%u.\n", loctime);
fputs (buffer, stdout)


msvcrt.dll version of strftime  lacks the format characters.
How would you print the ISO week day with an API call??

James


José Roca

When there is not a suitable API function, use Afx code.

In AfxTime.inc there is a function called AfxWeekNumber.