Chinaunix首页 | 论坛 | 博客
  • 博客访问: 275934
  • 博文数量: 85
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 525
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-12 21:41
文章分类

全部博文(85)

文章存档

2013年(37)

2011年(2)

2010年(3)

2009年(43)

我的朋友

分类: 嵌入式

2009-08-24 17:20:34

此函数为调用系统的库函数
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);  
  }
 
 
 
 
 

 
阅读(1902) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~