|
#include
#include
#include
#include"calibrate.h"
int _tmain(int argc,TCHAR* argv[],TCHAR* env[])
{
HINSTANCE hinstance = LoadLibrary(_T("coredll.dll"));
if(hinstance==NULL)
{
AfxMessageBox(L"instance == NULL");
return 0;
}
_TouchCalibrate TouchCalibrate = NULL;
TouchCalibrate = (_TouchCalibrate)GetProcAddress(hinstance , L"TouchCalibrate");
if(TouchCalibrate == NULL)
{
AfxMessageBox (L"TouchCalibrate == NULL");
return 0;
}
TouchCalibrate();
FreeLibrary(hinstance);
return 0;
}
build后用down到目标设备上可以直接用,Try it。 |
|