I am trying desprately to use fprint and other fairly simple C functions. I can't seem to get any exports from the LibCi.lib (or any of the other C libraries that came dev studio) but there aren't any. Is this just not possible right with MASM32, or am I missing something obvious.
Posted on 2001-06-18 18:04:00 by [=CC=]AMBUSH
The functions are in the msvcrt.dll in the windows\system directory.
Posted on 2001-06-19 02:55:00 by karim
hello, you can use MSVCRT.DLL or CRTDLL.DLL. As fas as I know, only CRTDLL.DLL is a standard component of Win9x/WinNT... To use the streaming functions (like fprint()...) you must first initialize the c-runtime via call to _cinit. To get a MSVCRT.LIB or CRTDLL.LIB for static linking, create a .DEF file (with tool impdef.exe), then use LIB /def:crtdll.def /out:crtdll.lib japheth
Posted on 2001-06-19 03:29:00 by japheth
[=CC=]AMBUSH, The trick is to write a set of prototypes for the functions in the library that you want to use, make sure you write them with the correct calling convention. Once you have the correct prototypes, you should be able to call the functions with no problems. Regards, hutch@pbq.com.au
Posted on 2001-06-19 03:47:00 by hutch--
Thank you very much for help. I think I know what I need to do now. :)
Posted on 2001-06-19 09:46:00 by [=CC=]AMBUSH