您的位置:程序门 -> delphi -> windows sdk/api



在vc调用delphi开发的activex的问题


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


在vc调用delphi开发的activex的问题
发表于:2007-08-27 12:53:23 楼主
开发了个activex在c#,delphi都没有问题,在vc中通过class   wizard   里   add   class,控件中的自定义事件生成的文件有的定义的方法显示method   'onrevmsg'   not   emitted   because   of   invalid   return   type   or   parameter   type怎么解决。该事件没有参数。delphi中声明如下procedure   onexam;   dispid   210;有请delphi   vc   达人解决。
发表于:2007-08-27 14:21:331楼 得分:0
1.   create   a   new   delphi   activex   control.  
2.   add   one   method   that   takes   a   byte   parameter.   for   example:
procedure     passbyte(d:pchar);
begin
end;

 
3.   build   the   control.  
4.   create   a   new   mfc   dialog   based   application.  
5.   add   the   visual   basic   control   that   was   generated   in   step   3   using   component   gallery.   do   this   by   going   to   the   project   menu,   select   add   components   and   controls,   and   then   selecting   registered   activex   controls.  
6.   after   you   select   the   delphi   control   and   click   ok,   component   gallery   presents   the   confirm   classes   dialog.   click   ok   on   the   confirm   classes   dialog   box   to   generate   the   wrapper   code.  
发表于:2007-08-27 14:35:212楼 得分:0
声明方法都没有问题,声明的事件vc不认,况且事件中没有参数。
发表于:2007-08-27 14:41:493楼 得分:0
好像解释是要需要你加一个参数


快速检索

最新资讯
热门点击