On Tue, 23 Apr 2002, Medland, Bill wrote: > Any chance of some help with this? > > Yesterday i submitted a unit test for wsprintfA. I didn't include wsprintfW > because I couldn't get it to work right. I still can't. I think it's > something to do with the calling convention (since wsprintf uses cdecl, not > stdcall). Here's the test code itself; > > static BOOL wsprintfWTest (void) > { > WCHAR buf[25]; > static const WCHAR fmt[] = {'%','0','1','0','l','d','\0'}; > WCHAR target[] = {'-','0','0','0','0','0','0','0','0','1'}; > > printf ("%p %p\n", buf, fmt); > ok ((wsprintfW (buf, fmt, -1) == 10), "wsPrintfW length failure"); ^
Would adding the above comma fix the problem? > ok ((lstrcmpW (buf, target) == 0), > "wsprintfW zero padded negative value failure\n"); > > return TRUE; > } [...] > Am I missing something obvious? Yes and no :-) -- Francois Gouget [EMAIL PROTECTED] http://fgouget.free.fr/ It really galls me that most of the computer power in the world is wasted on screen savers. Chris Caldwell from the GIMPS project http://www.mersenne.org/prime.htm