// FlisServerDlg.h : header file // #pragma once #include "afxwin.h" #include "stdafx.h" #include #include "Containers.h" #include "Serial.h" #define UWM_MYMESSAGE 0x8100 // CFlisServerDlg dialog class CFlisServerDlg : public CDialog { // Construction public: CFlisServerDlg(CWnd* pParent = NULL); // standard constructor CSerial Serial; CFlisServerDlg * mainwindow; // Dialog Data enum { IDD = IDD_FLISSERVER_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg LRESULT OnShowString(WPARAM,LPARAM); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() CDatabase db; int StartSerial(void); std::vector readFrame(); void writeFrame(std::vector data); void SendSmsData(std::vector data); void SendSmsHead(std::vector data); void SetPin(); void DBConnect(); vector DBRead(void); void ReadSms(); void SmsSplit(CString data); CString Splitter(CString& fyrdata); void DeleteSms(); void startthread(); virtual void runthread(); void Reader(); public: CEdit m_Textwindow; afx_msg void OnBnClickedtest(); afx_msg void OnBnClickedClose(); afx_msg void OnBnClickedGsmpin(); BOOL continueThread; friend UINT threadWrapper(LPVOID thread); };