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