void CTraderSpi::OnRspQryInvestorPosition(.., .., .., bool bIsLast) { cerr << "--->>> " << "OnRspQryInvestorPosition" << endl; if (bIsLast && !IsErrorRspInfo(pRspInfo)) { ///报单录入请求 //ReqOrderInsert(); } } 如果我要把ReqOrderInsert() 独立出来,要引用bIsLast 是否需要设置一个全局变量去记录bIsLast
呵呵, 你以为你取一次 持仓 返回的结果会造成对OnRspQryInvestorPositiony一次吗. 你有几个品种的持仓就会调用OnRspQryInvestorPosition 几次. 那到底是几次呢, bLast=TRUE 就是最后一个