Question

In what .dll file are the stdio functions implemented? I want to test my stack-language's FFI with basic c functions, but I cannot seem to find the correct .dll to GetModuleHandle, to then get function addresses with GetProcAddress...

Was it helpful?

Solution

If you are creating Windows apps, and want a complete set of libraries for accessing these functions, download the Windows SDK HERE

I always keep a copy on my dev machine. There are all kinds of things that come up with Windows programming that just require having access to Microsoft's highly monopolized interfaces to its overly burdensome OS :)

The Microsoft redistributable libraries: msvcr80.dll. msvcr100.dll et al. contain the functionality you are asking about, and as the name implies, are redistributable.

OTHER TIPS

You might want to use the system dll msvcrt.dll which is installed in the system32 directory and is part of the Windows system so you won't need to worry about redistribution - it's just there. msvcrt.dll is the DLL that MinGW uses as it's base runtime.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top