User's Manual

-37
TWO、Program Code Explanation
There are many subroutines, following are the source code of to subroutines.※
The explanation is in accordance with user interface.
(1) Open Comport
Click “Open” button to open comport.
The “Open” button executes the following code.
void CWinceDEMODlg::OnBnClickedButtonOpen()
{
// TODO: 在此加入控制項告知處理常式程式碼
CString sTemp;
TCHAR CFName[1024];
ZeroMemory(CFName, sizeof(CFName));
ButtonOpen.EnableWindow(false);
if(!SUNLITRFID_IsOpen())
{
ListMsg.ResetContent();
if(SUNLITRFID_CFExist(CFName))
{
ListMsg.InsertString(0,CString("Open Comport..."));
ListMsg.UpdateWindow ();