Domanda

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...

È stato utile?

Soluzione

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.

Altri suggerimenti

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top