// wsprintf.cpp : Defines the entry point for the application.
//#include "stdafx.h"
#include "stdio.h"int APIENTRY WinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
  // TODO: Place code here.
    TCHAR       szBufferx [100] ;
long length;   //length=wsprintf (szBufferx, TEXT ("%5d"),123456789);//这句输出是对的
  length=wsprintf (szBufferx, TEXT ("%5d"),13023289560);
  //为什么上面这句输出来的值不对呢?
  MessageBox (NULL, szBufferx, "szCaption", 0|1) ;
return 0;
}