#include <serialport.h>
◆ CSerialException()
| CSerialException::CSerialException |
( |
DWORD |
dwError | ) |
|
DWORD m_dwError
Definition: serialport.h:46
◆ ~CSerialException()
| CSerialException::~CSerialException |
( |
| ) |
|
◆ GetErrorMessage() [1/2]
| CString CSerialException::GetErrorMessage |
( |
| ) |
|
124 LPTSTR pstrError = rVal.GetBuffer(4096);
126 rVal.ReleaseBuffer();
CString GetErrorMessage()
Definition: serialport.cpp:121
#define NULL
Definition: nidaqmx.h:84
◆ GetErrorMessage() [2/2]
| BOOL CSerialException::GetErrorMessage |
( |
LPTSTR |
lpstrError, |
|
|
UINT |
nMaxError, |
|
|
PUINT |
pnHelpContext = NULL |
|
) |
| |
|
virtual |
98 ASSERT(pstrError !=
NULL && AfxIsValidString(pstrError, nMaxError));
100 if (pnHelpContext !=
NULL)
104 BOOL bRet = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
105 NULL,
m_dwError, MAKELANGID(LANG_NEUTRAL, SUBLANG_SYS_DEFAULT),
106 (LPTSTR) &lpBuffer, 0,
NULL);
112 lstrcpyn(pstrError, lpBuffer, nMaxError);
#define TRUE
Definition: nidaqmx.h:78
#define FALSE
Definition: nidaqmx.h:81
◆ m_dwError
| DWORD CSerialException::m_dwError |
The documentation for this class was generated from the following files: