03 2011 档案

入门级问题。 VC ATL 封装 Delphi com 组件 pchar 类型转换。
摘要:VC 中需要用ATL 调用 delph 写的com。IFinanceReport : 为接口GetFinaceReport : 接口方法在 文件头 :#import "dll path" no_namespace类型转换问题折腾了好久。在delphi 中的 pchar, vc 封装后为 LPSTR*STDMETHODIMP CmyATL::GetFinaceReport(BSTR year, BSTR month, BSTR* XMLReport){// TODO: 在此添加实现代码 LPSTR * year2 ; LPSTR * month2 ;year2=new LPS 阅读全文

posted @ 2011-03-16 10:50 dengdeng 阅读(480) 评论(0) 推荐(0)

导航