Rss & SiteMap

金字塔客服中心 - 专业程序化交易软件提供商 http://www.weistock.com/bbs/

专业程序化软件提供商
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:报个bug 股票名的指针,指飞了。

1楼
ybeetle 发表于:2015/1/7 12:01:18

pReport->m_szName 的指针向后移了4字节,要这样才正常  pReport->m_szName-4


//显示出上证指数的及时报价
REPORT_STRUCT * pReport = g_pMainFormework->GetReportData("000001",'HS');
if(pReport) 
{
CString strText;
strText.Format("%s    开盘:%.2f  最高:%.2f  最低:%.2f  最新:%.2f", pReport->m_szName-4, pReport->m_fOpen, pReport->m_fHigh, pReport->m_fLow, pReport->m_fNewPrice);
dc.TextOut(20,20,strText);
}
2楼
王锋 发表于:2015/1/7 12:11:30

C++插件开发建议你使用VC6版本, 请参考

http://www.weistock.com:8080/vip/forum.php?mod=viewthread&tid=1135&extra=page%3D1

共2 条记录, 每页显示 10 条, 页签: [1]


Powered By Dvbbs Version 8.3.0
Processed in 0.03125 s, 2 queries.