hi all, i need to link the u$ libcpmtd.lib with mi TLINK (borland) linker. But seems that u$ and borland libs don't use the same standard (linking i get "bad object file near offset 0" error). how can i do ? I need to call _sprintf _sscanf __fltused functions. any help is very appreciated. THX
Posted on 2001-06-08 17:38:00 by angelo
Link with the msvcrt dll. It's in the \windows\system\ directory. If it doesn't work, try to load the function with a LoadLibrary and GetProcAddress.
Posted on 2001-06-09 02:47:00 by karim
karim, many thanks, i've done it :) I've used borland implib utility. So I've created a msvcrt.lib from msvcrt.dll ! It seems to work ! But i'm just curious, how you know what functions are in a dll ?
Posted on 2001-06-09 03:52:00 by angelo
The dumpbin utility can display the function exported by a dll. But for sprintf and sscanf (and other C functions), I found the name of the library in the MSDN.
Posted on 2001-06-09 04:57:00 by karim