NFC SDK

Hi,
I am quite new in C++ and recently, I would like to play around NFC so I download a free SDK here for personal testing.
http://www.sony.net/Products/felica/business/products/ICS-D004_002_003.html

However, when I try to run the program, it keep looping in the following code.

while (true) {
if (PeekMessage (&msg, 0, 0, 0, PM_NOREMOVE)) {
if (!GetMessage (&msg, hWnd, 0, 0)) {
bRet = false;
return bRet;
}
else if ((msg.message == card_find_message)) {
::TranslateMessage(&msg);
::DispatchMessage(&msg);
bRet = true;

DEVICE_INFO* pDevInfo = (DEVICE_INFO*)msg.lParam;
DEVICE_DATA_NFC_14443A_18092_106K* pDeviceData_A = (DEVICE_DATA_NFC_14443A_18092_106K*)pDevInfo->dev_info;
unsigned long target_number = pDeviceData_A->target_number;

bRet = ::felicalib_nfc_start_dev_access(target_number);
if (bRet == false) {
printf("Failed:felcalib_nfc_start_dev_access\n");
::printErrorInformation();
return bRet;
}
}
else if (msg.message == card_enable_message) {
::TranslateMessage(&msg);
::DispatchMessage(&msg);
bRet = true;
break;
}
}
}

anyone can tell me how to make a simple program for this reader??
I get lost always since the code is not the usual C++ that I play before
Xman88
Topic archived. No new replies allowed.