PB7.0做COM口的UO中的问题?
本人想做个UO来操作COM口,其中碰到了点问题。希望大家能来给小生点提示啊!
1。引用的时候出了问题。以下几个说要结构,但是我有找不到怎么弄了。
FUNCTION Boolean GetCommProperties(ulong hFile,ref COMMPROP lpCommProp) LIBRARY "kernel32.dll"
Function Boolean BuildCommDCBA(ref string lpDef,ref DCB lpDCB ) Library "Kernel32.dll"
Function Boolean SetCommState(ulong hCommDev,ref DCB lpdcb ) Library "Kernel32.dll"
Function Boolean GetCommState(ulong hCommDev,ref DCB lpdcb ) Library "Kernel32.dll"
2。COM口怎样来等着接数据呢?