Hello,

I've been wondering :confused: about the fact that some win32 API may require (or use) C runtime functions. This is probably something very idiot of me to think but .... well, better be a fool once than live with this BIG doubt!!!
:grin::grin::grin:

yaa
Posted on 2003-02-17 14:59:02 by yaa
I can't say for sure. I've traced thru the odd API but i can't say i enjoy it ;)

However, there are C runtimes installed typically in ever windows OS so its possible there is an api out there that wants to use something from it.

If you have an os to kill, erase the crtdll.dll from you OS and see how long it lasts.. if it does.. its a good bet that *most* common api's dont. (I dont recomend this solution).

:NaN:
Posted on 2003-02-17 23:00:09 by NaN
yaa,

C run-time functions can be very usefull.Sometimes,they are very practical to use.Try to explore
the functions of crtdll.dll and msvcrt.dll

Regards,

Vortex
Posted on 2003-02-18 02:24:12 by Vortex
I know C functions and use them with profit. My doubt was about win32 APIs using C functions in their implementation and so not being able to do without linking the C runtime. I remember (I'm not sure if it's something I read or something I invented myself somehow) that the memset function is used by win32 memory APIs for doing what they do. But as I said, I'm not really sure.

yaa
Posted on 2003-02-18 04:18:07 by yaa
definitive: NO

at least "no" for all basic windows libraries, like kernel, gdi, user, etc. they will need no C-lib

just watch with a dll or exe tool which dlls are imported and used by the corresponding file
Posted on 2003-02-18 06:43:58 by beaster
Beaster is absolutely right.

I checked it.

kernel32.dll don't imports any dll functions.
advapi32.dll imports only kernel32.dll functions
gdi32.dll imports advapi32.dll and kernel32.dll functions
user32.dll imports gdi32.dll and kernel32.dll functions
comctl32.dll imports advapi32.dll, gdi32.dll, kernel32.dll and user32.dll
comdlg.dll imports advapi32.dll, gdi32.dll, kernel32.dll and user32.dll

But... ws2_32.dll (Is this WinSock API?) uses msvcrt.dll.
Posted on 2003-02-18 09:08:57 by JohnFound