char lpBuffer[]="10"; float a; a=atof(lpBuffer);
int a; char lpBuffer[256]; wsprintf(lpBuffer,"%d",a);