| 发表于:2007-10-09 21:22:33 楼主 |
建立方法原型: void __fastcall cppwebbrowserdocumentcomplete(tobject *sender, lpdispatch pdisp, variant *url); 建立对象: thewebbrowse[0] = new tcppwebbrowser(this); thewebbrowse[0]-> ondocumentcomplete = cppwebbrowserdocumentcomplete; 错误提示: [c++ error] twebbrowse.h(43): e2034 cannot convert 'void (_fastcall * (_closure )(tobject *,idispatch *,variant *))(tobject *,idispatch *,variant *)' to 'void (_fastcall * (_closure )(tobject *,idispatch *,tagvariant *))(tobject *,idispatch *,tagvariant *)' variant 与tagvariant 有什么不同,怎么转换? |
|
|
|
|