vsnprintf和wvsprintf的区别
Submitted by hubdog on Sat, 2009-12-26 22:43
vsnprintf和wvsprintf的唯一区别就是wvsprintf函数不能处理浮点格式化字符串。
倒霉的是Delphi自带的Windows.pas里面只提供了wvsprintf的定义。要想使用vsnprintf,我们需要引用MSVCRT.dll中的
vsnprintf函数
function _vsnprintf(buffer: PAnsiChar; count: size_t; format: PAnsiChar): Integer; cdecl;varargs; external 'MSVCRT.DLL' name '_vsnprintf';