欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件高级功能研发区 → [求助]写好插件编译时报这样的错,咋回事,你们的头文件怎么也报错

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有3747人关注过本帖树形打印复制链接

主题:[求助]写好插件编译时报这样的错,咋回事,你们的头文件怎么也报错

帅哥哟,离线,有人找我吗?
qq1mp2
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
[求助]写好插件编译时报这样的错,咋回事,你们的头文件怎么也报错  发帖心情 Post By:2015/2/4 10:24:47 [只看该作者]

-------------------Configuration: AddinDemo - Win32 Release--------------------
Compiling...
Futures.cpp
D:\ifmin1\AddinInterface.h(16) : error C2146: syntax error : missing ';' before identifier 'm_time'
D:\ifmin1\AddinInterface.h(16) : error C2501: 'time_t' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(16) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(55) : error C2146: syntax error : missing ';' before identifier 'm_timeHardenSpeed'
D:\ifmin1\AddinInterface.h(55) : error C2501: 'time_t' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(55) : error C2501: 'm_timeHardenSpeed' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(57) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'
D:\ifmin1\AddinInterface.h(57) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(57) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(63) : error C2146: syntax error : missing ';' before identifier 'm_timeDate'
D:\ifmin1\AddinInterface.h(63) : error C2501: 'DATE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(63) : error C2501: 'm_timeDate' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(71) : error C2146: syntax error : missing ';' before identifier 'm_wAdvance'
D:\ifmin1\AddinInterface.h(71) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(71) : error C2501: 'm_wAdvance' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(72) : error C2146: syntax error : missing ';' before identifier 'm_wDecline'
D:\ifmin1\AddinInterface.h(72) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(72) : error C2501: 'm_wDecline' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(73) : error C2146: syntax error : missing ';' before identifier 'm_wQT'
D:\ifmin1\AddinInterface.h(73) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(73) : error C2501: 'm_wQT' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(80) : error C2146: syntax error : missing ';' before identifier 'm_fBuyVolume'
D:\ifmin1\AddinInterface.h(80) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(80) : error C2501: 'm_fBuyVolume' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(81) : error C2146: syntax error : missing ';' before identifier 'm_fSellVolume'
D:\ifmin1\AddinInterface.h(81) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(81) : error C2501: 'm_fSellVolume' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(98) : error C2146: syntax error : missing ';' before identifier 'm_timeDate'
D:\ifmin1\AddinInterface.h(98) : error C2501: 'DATE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(98) : error C2501: 'm_timeDate' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(109) : error C2146: syntax error : missing ';' before identifier 'm_nMarket'
D:\ifmin1\AddinInterface.h(109) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(109) : error C2501: 'm_nMarket' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(144) : error C2146: syntax error : missing ';' before identifier 'm_dwVersion'
D:\ifmin1\AddinInterface.h(144) : error C2501: 'DWORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(144) : error C2501: 'm_dwVersion' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(145) : error C2146: syntax error : missing ';' before identifier 'm_dwSerial'
D:\ifmin1\AddinInterface.h(145) : error C2501: 'DWORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(145) : error C2501: 'm_dwSerial' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(147) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'
D:\ifmin1\AddinInterface.h(147) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(147) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(149) : error C2146: syntax error : missing ';' before identifier 'm_bIsPow'
D:\ifmin1\AddinInterface.h(149) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(149) : error C2501: 'm_bIsPow' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(150) : error C2146: syntax error : missing ';' before identifier 'm_nPowType'
D:\ifmin1\AddinInterface.h(150) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(150) : error C2501: 'm_nPowType' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(151) : error C2146: syntax error : missing ';' before identifier 'm_bIsReversePrice'
D:\ifmin1\AddinInterface.h(151) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(151) : error C2501: 'm_bIsReversePrice' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(152) : error C2146: syntax error : missing ';' before identifier 'm_nDataCount'
D:\ifmin1\AddinInterface.h(152) : error C2501: 'DWORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(152) : error C2501: 'm_nDataCount' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(153) : error C2146: syntax error : missing ';' before identifier 'm_nCustomCyc'
D:\ifmin1\AddinInterface.h(153) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(153) : error C2501: 'm_nCustomCyc' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(154) : error C2146: syntax error : missing ';' before identifier 'm_nReserve'
D:\ifmin1\AddinInterface.h(154) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(154) : error C2501: 'm_nReserve' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(173) : error C2146: syntax error : missing ';' before identifier 'm_cbSize'
D:\ifmin1\AddinInterface.h(173) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(173) : error C2501: 'm_cbSize' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(174) : error C2146: syntax error : missing ';' before identifier 'm_time'
D:\ifmin1\AddinInterface.h(174) : error C2501: 'time_t' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(174) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(175) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'
D:\ifmin1\AddinInterface.h(175) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(175) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(205) : error C2146: syntax error : missing ';' before identifier 'm_time'
D:\ifmin1\AddinInterface.h(205) : error C2501: 'time_t' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(205) : error C2501: 'm_time' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(206) : error C2146: syntax error : missing ';' before identifier 'm_wMarket'
D:\ifmin1\AddinInterface.h(206) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(206) : error C2501: 'm_wMarket' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(222) : error C2146: syntax error : missing ';' before identifier 'm_bMainReport'
D:\ifmin1\AddinInterface.h(222) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(222) : error C2501: 'm_bMainReport' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(223) : error C2146: syntax error : missing ';' before identifier 'm_nFlag1'
D:\ifmin1\AddinInterface.h(223) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(223) : error C2501: 'm_nFlag1' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(224) : error C2146: syntax error : missing ';' before identifier 'm_nFlag2'
D:\ifmin1\AddinInterface.h(224) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(224) : error C2501: 'm_nFlag2' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(225) : error C2146: syntax error : missing ';' before identifier 'm_nReserve'
D:\ifmin1\AddinInterface.h(225) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(225) : error C2501: 'm_nReserve' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(271) : error C2146: syntax error : missing ';' before identifier 'm_nBuySell'
D:\ifmin1\AddinInterface.h(271) : error C2501: 'BYTE' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(271) : error C2501: 'm_nBuySell' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(272) : error C2146: syntax error : missing ';' before identifier 'm_nVol'
D:\ifmin1\AddinInterface.h(272) : error C2501: 'WORD' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(272) : error C2501: 'm_nVol' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(301) : error C2146: syntax error : missing ';' before identifier 'm_strStatus'
D:\ifmin1\AddinInterface.h(301) : error C2501: 'CString' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(301) : error C2501: 'm_strStatus' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(305) : error C2146: syntax error : missing ';' before identifier 'm_strCode'
D:\ifmin1\AddinInterface.h(305) : error C2501: 'CString' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(305) : error C2501: 'm_strCode' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(306) : error C2146: syntax error : missing ';' before identifier 'm_strMarket'
D:\ifmin1\AddinInterface.h(306) : error C2501: 'CString' : missing storage-class or type specifiers
D:\ifmin1\AddinInterface.h(306) : fatal error C1003: error count exceeds 100; stopping compilation
FuturesWindows.cpp
D:\ifmin1\FuturesWindows.cpp(79) : error C2228: left of '.MIN1_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(82) : error C2228: left of '.MIN3_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(85) : error C2228: left of '.MIN5_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(88) : error C2228: left of '.MIN10_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(91) : error C2228: left of '.MIN15_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(94) : error C2228: left of '.MIN30_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(97) : error C2228: left of '.MIN60_DATA' must have class/struct/union type
D:\ifmin1\FuturesWindows.cpp(100) : error C2228: left of '.DAY_DATA' must have class/struct/union type
执行 cl.exe 时出错.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Release\Futures.sbr': No such file or directory
执行 bscmake.exe 时出错.

 回到顶部
帅哥哟,离线,有人找我吗?
qq1mp2
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
  发帖心情 Post By:2015/2/4 10:41:37 [只看该作者]

CYC_DATA_TYPE period_data;明明创建了新对象,为什么不能调用成员?

 回到顶部
帅哥哟,离线,有人找我吗?
王锋
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:11808 积分:20695 威望:0 精华:10 注册:2009/8/18 8:15:13
  发帖心情 Post By:2015/2/4 10:43:49 [只看该作者]

使用VC6编译试试


金字塔—专业程序化软件提供商

金字塔-技术部

-----------------------------------------------------------------------------------------------------

工作时间:周一至周五 08:30 - 17:30   周末及法定节假日休息

Email:service@weistock.com
 回到顶部
帅哥哟,离线,有人找我吗?
qq1mp2
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
  发帖心情 Post By:2015/2/4 11:02:27 [只看该作者]

就是用VC6编译的啊

 回到顶部
帅哥哟,离线,有人找我吗?
王锋
  5楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:11808 积分:20695 威望:0 精华:10 注册:2009/8/18 8:15:13
  发帖心情 Post By:2015/2/4 11:38:51 [只看该作者]

你就是使用自带的例子没做任何改动编译就报这么多错误?


金字塔—专业程序化软件提供商

金字塔-技术部

-----------------------------------------------------------------------------------------------------

工作时间:周一至周五 08:30 - 17:30   周末及法定节假日休息

Email:service@weistock.com
 回到顶部
帅哥哟,离线,有人找我吗?
qq1mp2
  6楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
  发帖心情 Post By:2015/2/4 13:14:02 [只看该作者]

自带例子不会,我写了再编译就这样

 回到顶部
帅哥哟,离线,有人找我吗?
王锋
  7楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:罗宾汉 帖子:11808 积分:20695 威望:0 精华:10 注册:2009/8/18 8:15:13
  发帖心情 Post By:2015/2/4 15:13:51 [只看该作者]

那就要看你到底改了什么东西了,这个我们不是神仙的


金字塔—专业程序化软件提供商

金字塔-技术部

-----------------------------------------------------------------------------------------------------

工作时间:周一至周五 08:30 - 17:30   周末及法定节假日休息

Email:service@weistock.com
 回到顶部
帅哥哟,离线,有人找我吗?
qq1mp2
  8楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
  发帖心情 Post By:2015/2/4 15:52:27 [只看该作者]

这样吧,我把源码给你,帮我看下,给我个QQ号码



 回到顶部
帅哥哟,离线,有人找我吗?
qq1mp2
  9楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:49 积分:0 威望:0 精华:0 注册:2015/1/27 10:19:32
  发帖心情 Post By:2015/2/4 16:10:55 [只看该作者]

没修改过任何原来的东西,就只是增加了自己的

 回到顶部