Board index » delphi » OleAuto object vs. Com object question
Doug Lewis
![]() Delphi Developer |
Mon, 08 Nov 2004 11:46:40 GMT
OleAuto object vs. Com object question
I created a new object of "ActiveX Library" and then added a "COM Object"
what I'm trying to understand is why when I add: 1. a method with a return type of HRESULT it builds a function instead 2. a method with a return type of HRESULT and a parameter of * variant function foo (out parm1 : OleVariant) : HRESULT; stdcall; I was expecting function foo () : OleVariant ; stdcall; If I had done this with an "Automation Object" I get the following, which is 1. procedure foo () : stdcall; What am I doing wrong, or is this normal behavior? Thanks in advance |