Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » QAnywhere » QAnywhere 参考 » QAnywhere C++ API 参考 » QAManagerBase 类

 

start 函数

语法
qa_bool QAManagerBase::start()
注释

启动 QAManagerBase 来接收消息监听器中进来的消息。

如果未设置消息监听器(即用 GetMessage 方法接收消息),则不需要启动 QAManagerBase。不建议使用 getMessage 方法和消息监听器来接收消息。应该使用异步(消息监听器)或同步 (getMessage) 模型二者中的一种来接收消息。

如果没有使用 stop 调用进行干预,则第一次调用之后对 start 的任何调用都将被忽略。

另请参见

stop 函数

返回值

当且仅当操作成功时返回 true。