PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: some basic filing stuff  (Read 833 times)

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8905
  • Windows 10
    • PlanetSquires Software
Re: some basic filing stuff
« Reply #15 on: August 16, 2019, 01:40:22 PM »

LOL - yup, use Jose's Afx code  :)
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

James Fuller

  • Senior Member
  • ***
  • Posts: 283
  • FF3 User
Re: some basic filing stuff
« Reply #16 on: August 17, 2019, 06:52:22 AM »

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


Logged

James Fuller

  • Senior Member
  • ***
  • Posts: 283
  • FF3 User
Re: some basic filing stuff
« Reply #17 on: August 17, 2019, 01:09:11 PM »

Josť,
 The line in question is:
Code: [Select]
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

Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3215
Re: some basic filing stuff
« Reply #18 on: August 17, 2019, 02:04:32 PM »

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

In AfxTime.inc there is a function called AfxWeekNumber.
Pages: 1 [2]