| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 527 人关注过本帖
标题:怎样找到我想了解的函数啊?
只看楼主 加入收藏
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
 问题点数:0 回复次数:5 
怎样找到我想了解的函数啊?

m_strlcomm 是MScomm的一个控件名,它包含了很多函数,例如在我写完m_strlcomm. 后就会出现提示的很多函数,我想了解这些函数的功能,但在MSDN中找不到!我该怎么找哪?

搜索更多相关主题的帖子: 函数 
2006-10-06 10:35
wfpb
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2188
专家分:0
注 册:2006-4-2
收藏
得分:0 

Handshake Constants

Constant Value Description
comNone 0 No handshaking.
comXonXoff 1 XOn/XOff handshaking.
comRTS 2 Request-to-send/clear-to-send handshaking.
comRTSXOnXOff 3 Both request-to-send and XOn/XOff handshaking.


OnComm Constants

Constant Value Description
comEvSend 1 Send event.
comEvReceive 2 Receive event.
comEvCTS 3 Change in clear-to-send line.
comEvDSR 4 Change in data-set ready line.
comEvCD 5 Change in carrier detect line.
comEvRing 6 Ring detect.
comEvEOF 7 End of file.


Error Constants

Constant Value Description
comEventBreak 1001 Break signal received
comEventFrame 1004 Framing error
comEventOverrun 1006 Port overrun
comEventRxOver 1008 Receive buffer overflow
comEventRxParity 1009 Parity error
comEventTxFull 1010 Transmit buffer full
comEventDCB 1011 Unexpected error retrieving Device Control Block (DCB) for the port


InputMode Constants

Constant Value Description
comInputModeText 0 (Default) Data is retrieved through the Input property as text.
comInputModeBinary 1 Data is retrieved through the Input property as binary data.




The MSComm control provides serial communications for your application by allowing the transmission and reception of data through a serial port.

Syntax

MSComm

Remarks

The MSComm control provides the following two ways for handling communications:

Event-driven communications is a very powerful method for handling serial port interactions. In many situations you want to be notified the moment an event takes place, such as when a character arrives or a change occurs in the Carrier Detect (CD) or Request To Send (RTS) lines. In such cases, use the MSComm control's OnComm event to trap and handle these communications events. The OnComm event also detects and handles communications errors. For a list of all possible events and communications errors, see the CommEvent property.


You can also poll for events and errors by checking the value of the CommEvent property after each critical function of your program. This may be preferable if your application is small and self-contained. For example, if you are writing a simple phone dialer, it may not make sense to generate an event after receiving every character, because the only characters you plan to receive are the OK response from the modem.
Each MSComm control you use corresponds to one serial port. If you need to access more than one serial port in your application, you must use more than one MSComm control. The port address and interrupt address can be changed from the Windows Control Panel.

Although the MSComm control has many important properties, there are a few that you should be familiar with first.

Properties Description
CommPort Sets and returns the communications port number.
Settings Sets and returns the baud rate, parity, data bits, and stop bits as a string.
PortOpen Sets and returns the state of a communications port. Also opens and closes a port.
Input Returns and removes characters from the receive buffer.
Output Writes a string of characters to the transmit buffer.


[glow=255,red,2]wfpb的部落格[/glow] 学习成为生活的重要组成部分!
2006-10-06 13:00
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 

十分感谢!


2006-10-07 11:27
michelle_012
Rank: 1
等 级:新手上路
帖 子:50
专家分:0
注 册:2006-9-24
收藏
得分:0 
我还有个问题:
有的变量是以m开头,例如m_strRXData,有的是以g开头,例如g_strtx.
m,g代表什么意思那?

2006-10-07 11:29
踏魔狼
Rank: 6Rank: 6
等 级:贵宾
威 望:24
帖 子:1322
专家分:33
注 册:2005-9-22
收藏
得分:0 
m表示成员函数,g表示全局函数.

=×&D o I p R e E n C g T l X&×=
2006-10-07 21:12
wfpb
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2188
专家分:0
注 册:2006-4-2
收藏
得分:0 
'm'是member或者my的缩写。
'g'是global的缩写

[此贴子已经被作者于2006-10-8 16:47:08编辑过]


[glow=255,red,2]wfpb的部落格[/glow] 学习成为生活的重要组成部分!
2006-10-08 16:46
快速回复:怎样找到我想了解的函数啊?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.035453 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved