本帖最后由 tts 于 2010-9-22 13:44 编辑
下面是用AIOWrapperGenerator导出
不过我还是不会运用,放上来让大家参考
若是对AIOWrapperGenerator这个工具有兴趣
可以到AutoItObject及TLI.au3 - type information on COM objects 看看 (附件也附上)Global $tIID__DICEGLOBALTRADEAPI = _AutoItObject_CLSIDFromString("{5A9B9BEB-3AA8-4DE8-BCB2-C9C6D43556D5}")
Global $tag_DICEGLOBALTRADEAPI = _
"GetConnectStatus int();" & _
"Login int(int;wstr;wstr;int;wstr;int;wstr;wstr;wstr;wstr;wstr;wstr;int);" & _
"Logout int();" & _
"GetValueHigh int(int;int;int);" & _
"GetValueLow int(int;int;int);" & _
"GetDataCount int(int);" & _
"GetString wstr(int;int;int);" & _
"SubscribeByAccount none(int;wstr;wstr);" & _
"GetReportString wstr(int;int;int);" & _
"GetReportValue int(int;int;int);" & _
"HttpQuery int(wstr;wstr);" & _
"PlaceFutOrder int(URESOLVED_12);" & _
"PlaceOptOrder int(URESOLVED_12);" & _
"PlaceOpt2Order int(URESOLVED_12);" & _
"PlaceStkOrder int(URESOLVED_12);" & _
"ReduceFutOrder int(int;URESOLVED_12);" & _
"ReduceOptOrder int(int;URESOLVED_12);" & _
"ReduceOpt2Order int(int;URESOLVED_12);" & _
"ReduceStkOrder int(int;URESOLVED_12);" & _
"PlaceOBFutOrder int(URESOLVED_12);" & _
"ReduceOBFutOrder int(int;URESOLVED_12);" & _
"GetOBReportString wstr(int;int;int);" & _
"GetOBReportValue double(int;int;int);" & _
"PlaceFutOrder2 int(URESOLVED_12);" & _
"PlaceOptOrder2 int(URESOLVED_12);" & _
"PlaceOpt2Order2 int(URESOLVED_12);" & _
"PlaceStkOrder2 int(URESOLVED_12);" & _
"PlaceOBFutOrder2 int(URESOLVED_12);" & _
"ReduceFutOrder2 int(int;URESOLVED_12);" & _
"ReduceOptOrder2 int(int;URESOLVED_12);" & _
"ReduceOpt2Order2 int(int;URESOLVED_12);" & _
"ReduceStkOrder2 int(int;URESOLVED_12);" & _
"ReduceOBFutOrder2 int(int;URESOLVED_12);" & _
"PlaceFut2Order int(URESOLVED_12);" & _
"PlaceFut2Order2 int(URESOLVED_12);" & _
"ReduceFut2Order int(int;URESOLVED_12);" & _
"ReduceFut2Order2 int(int;URESOLVED_12);" & _
"ReturnCAPath wstr();" & _
"ReturnCAPassword wstr();" & _
"AboutBox none();"
; -------------------------------
Local $pDICEGLOBALTRADEAPI
; Initialize interface pointer $pDICEGLOBALTRADEAPI here, for example:
; _AutoItObject_CoCreateInstance(DllStructGetPtr($tCLSID_SomeClass), 0, 1, DllStructGetPtr($tIID__DICEGLOBALTRADEAPI), $pDICEGLOBALTRADEAPI)
Local $objDICEGLOBALTRADEAPI = _AutoItObject_WrapperCreate($pDICEGLOBALTRADEAPI, $tag_DICEGLOBALTRADEAPI)
|