You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
695 B
C
31 lines
695 B
C
|
3 years ago
|
// MicroscanMS3.h: interface for the CMicroscanMS3 class.
|
||
|
|
//
|
||
|
|
//////////////////////////////////////////////////////////////////////
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "Scanner.h"
|
||
|
|
#include "Utility.h"
|
||
|
|
|
||
|
|
#ifdef BUILD_COMMDLL
|
||
|
|
#define COMMDLL_DLLCLASS __declspec(dllexport)
|
||
|
|
#else
|
||
|
|
#define COMMDLL_DLLCLASS __declspec(dllimport)
|
||
|
|
#endif
|
||
|
|
|
||
|
|
class COMMDLL_DLLCLASS CMicroscanMS3 : public CScanner, CMyWait
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
bool Off();
|
||
|
|
bool On();
|
||
|
|
bool ReadBarCode(DWORD dwTimeout, std::string& strBarcode);
|
||
|
|
std::string GetReceiveData();
|
||
|
|
void ReceiveComm(const char* cpcBuffer, int nSize);
|
||
|
|
CMicroscanMS3();
|
||
|
|
virtual ~CMicroscanMS3();
|
||
|
|
|
||
|
|
private:
|
||
|
|
std::string m_strBarcode;
|
||
|
|
HANDLE m_hSuccess;
|
||
|
|
};
|
||
|
|
|