logoalt Hacker News

ChrisSDtoday at 12:58 AM2 repliesview on HN

The Win32 API. E.g. using WriteFile to write files (https://learn.microsoft.com/en-us/windows/win32/api/fileapi/...)

It wasn't until fairly recently that the C runtime was stably shipped with Windows. Previously you had to install the correct version of the C library alongside your application.


Replies

lmmtoday at 1:10 AM

> The Win32 API. E.g. using WriteFile to write files (https://learn.microsoft.com/en-us/windows/win32/api/fileapi/...)

Which is called from what, if not C? Does windows really offer no API for writing text (rather than bytes) to files? Or does it rely on the application developer to manage line endings in their own code? Neither of those sounds very developer-friendly.

show 3 replies
userbinatortoday at 2:05 AM

It wasn't until fairly recently

By "recently" you mean Win95? MSVCRT.DLL has been there for at least that long.

show 2 replies