zaodt:真服你!
你怎么知道我就要这个啊!
我顶!
(发表于2003-4-2 11:14:00)
berksuper:非常感谢!向奉献者致以革命的最高敬礼!
(发表于2003-7-9 16:33:00)
43114:为什么在创建EXE文件时出错提示找不到“MFC42UD.LIB”和“MFCS42UD.LIB”,当把此两个文件考到LIB 目录下后,创建成功,但运行时还提示找不到MFC42UD。DLL动态连接库?
我装的是英文板VC++6.0.安装时无错误。不知为什么
(发表于2003-8-11 15:41:00)
wilehorse:我和43114遇到一样的问题,怎么没有人回答啊
(发表于2003-10-17 17:39:00)
acholl:你是不是用了unicode编码了,我以前用unicode的时候也出现过,装上vc里面的unicode插件就好了,至于怎么装,msdn说得很详细
(发表于2003-11-18 18:19:00)
mmnq:我也出现同样的情况,不只该如何处理,请教高手指点!!
(发表于2003-11-28 14:33:00)
Hi_nihaoma:急急急!!! 请教:为什么我使用重叠方式打开串口,根据示例:
for(int j= 0; j< 10; j++)
{
if (!port2.Write(pBuf, 10000, overlapped))
{
DWORD dwBytesWritten;
WaitForSingleObject(event, INFINITE);
port2.GetOverlappedResult(overlapped, dwBytesWritten, TRUE);
}
if (!port2.Read(pBuf, 10, overlapped))
{
DWORD dwBytesRead;
if (WaitForSingleObject(event, 1000) == WAIT_OBJECT_0)
{
TRACE(_T("Data was read from the serial port\n"));
port2.GetOverlappedResult(overlapped, dwBytesRead, FALSE);
}
else
TRACE(_T("No data was read from the serial port\n"));
}
port2.SetMask(EV_TXEMPTY);
port2.WaitEvent(dwMask, overlapped);
}
第二次port2.GetOverlappedResult(overlapped, dwBytesRead, FALSE);
dwByteRead= 4啊???
(发表于2003-12-21 20:56:00)
Hi_nihaoma:急急急!!! 请教:为什么我使用重叠方式打开串口,根据示例:
for(int j= 0; j< 10; j++)
{
if (!port2.Write(pBuf, 10000, overlapped))
{
DWORD dwBytesWritten;
WaitForSingleObject(event, INFINITE);
port2.GetOverlappedResult(overlapped, dwBytesWritten, TRUE);
}
if (!port2.Read(pBuf, 10, overlapped))
{
DWORD dwBytesRead;
if (WaitForSingleObject(event, 1000) == WAIT_OBJECT_0)
{
TRACE(_T("Data was read from the serial port\n"));
port2.GetOverlappedResult(overlapped, dwBytesRead, FALSE);
}
else
TRACE(_T("No data was read from the serial port\n"));
}
port2.SetMask(EV_TXEMPTY);
port2.WaitEvent(dwMask, overlapped);
}
第二次port2.GetOverlappedResult(overlapped, dwBytesRead, FALSE);
dwByteRead= 4啊???
(发表于2003-12-21 21:00:00)
LYKNet:请问如何设置串口发送校验方式,串口设备句柄老是死掉,希望高手指点!!!
m_SerialPort.Open(1);
//改变校验方式为标志1
DCB dcb;
dcb.DCBlength = sizeof(DCB);
dcb.Parity = MARKPARITY:
m_SerialPort.SetState(dcb);
//传送设备地址符(DeviceAddress为一设备地址位)
m_SerialPort.TransmitChar(DeviceAddress);
dcb.Parity = SPACEPARITY;
m_SerialPort.SetState(dcb);
//传送设备状态
CString strDeviceState(_T(""));
for(int nItemIndex=0;nItemIndex<10;nItemIndex++)
{
strDeviceState.AppendChar(nItemIndex);//灯索引
strDeviceState.AppendChar(TRUE); //灯状态
}
strDeviceState.AppendChar(FinshTag); //完成标志
m_SerialPort.Write(strDeviceState.GetBuffer(),strDeviceState.GetLength());
(发表于2004-7-30 17:28:00)
LYKNet:请问如何设置串口发送校验方式,串口设备句柄老是死掉,希望高手指点!!!
m_SerialPort.Open(1);
//改变校验方式为标志1
DCB dcb;
dcb.DCBlength = sizeof(DCB);
dcb.Parity = MARKPARITY:
m_SerialPort.SetState(dcb);
//传送设备地址符(DeviceAddress为一设备地址位)
m_SerialPort.TransmitChar(DeviceAddress);
dcb.Parity = SPACEPARITY;
m_SerialPort.SetState(dcb);
//传送设备状态
CString strDeviceState(_T(""));
for(int nItemIndex=0;nItemIndex<10;nItemIndex++)
{
strDeviceState.AppendChar(nItemIndex);//灯索引
strDeviceState.AppendChar(TRUE); //灯状态
}
strDeviceState.AppendChar(FinshTag); //完成标志
m_SerialPort.Write(strDeviceState.GetBuffer(),strDeviceState.GetLength());
(发表于2004-7-30 17:31:00)
..........................................................................
--------------------next---------------------