此函数为调用系统的库函数
typedef BOOL (WINAPI *_TouchCalibrate)();
void callTouchCalibrate()
{
HINSTANCE ApiDLL = LoadLibrary(_T("coredll.dll"));
if (ApiDLL == NULL)
{
// AfxMessageBox (L"ApiDLL == NULL");
return;
}
_TouchCalibrate TouchCalibrate = NULL;
TouchCalibrate = (_TouchCalibrate)GetProcAddress(ApiDLL, _T("TouchCalibrate"));
if (TouchCalibrate == NULL)
{
//AfxMessageBox (L"TouchCalibrate == NULL");
return;
}
TouchCalibrate ();
}
用itoa(值,数组名,进制)和sprintf()
#include
#include
void main()
{
char a[20],b[20];
int i=100;
sprintf(a,"%d",i);
itoa(i,b,10);//包含在include中
printf("%s,%s\n",a,b);
}
阅读(1925) | 评论(0) | 转发(0) |