Board index » delphi » ActiveX and D3 - simple question!

ActiveX and D3 - simple question!

Hi all,

I am trying to do some really simple ActiveX programming in Delphi 3
Professional.

The VB equivalent of what I want is:

Dim ob as object
set ob=createobject("myobj.myclass")
 ob.methods
 ob.functions
set ob=nothing

Can anyone tell me the Delphi equivalent of the above? I've tried the
help and found it to be less than useless....

TIA

--
Return address removed for anti-spam purposes.
Email replies to news at maelstrom dot demon dot co dot uk
Email replies to this address may be copied to relevant newsgroups

 

Re:ActiveX and D3 - simple question!


Quote
X <Newsmas...@co.uk> wrote:

>Hi all,

>I am trying to do some really simple ActiveX programming in Delphi 3
>Professional.

>The VB equivalent of what I want is:

>Dim ob as object
>set ob=createobject("myobj.myclass")
> ob.methods
> ob.functions
>set ob=nothing

>Can anyone tell me the Delphi equivalent of the above? I've tried the
>help and found it to be less than useless....

>TIA

>--
>Return address removed for anti-spam purposes.
>Email replies to news at maelstrom dot demon dot co dot uk
>Email replies to this address may be copied to relevant newsgroups

I have the same question....
please forward me a copy of the answer.

best regards,
chuck

???????????????????????????????????????????????????
?                                                 ?
?   "There's no point in being grown up if you    ?
?    can't act childish sometimes."               ?
?        The Doctor, Dr. Who: 'Robot'             ?
?                                                 ?
???????????????????????????????????????????????????

Re:ActiveX and D3 - simple question!


Quote
X <Newsmas...@co.uk> wrote:

>Hi all,

>I am trying to do some really simple ActiveX programming in Delphi 3
>Professional.

>The VB equivalent of what I want is:

>Dim ob as object
>set ob=createobject("myobj.myclass")
> ob.methods
> ob.functions
>set ob=nothing

>Can anyone tell me the Delphi equivalent of the above? I've tried the
>help and found it to be less than useless....

>TIA

>--
>Return address removed for anti-spam purposes.
>Email replies to news at maelstrom dot demon dot co dot uk
>Email replies to this address may be copied to relevant newsgroups

Hi,
I picked this up a little further down the line in this newsgroup:

uses ActiveX, ComObj; { maybe others? }

var
  o : Variant;
begin
 o := CreateOLEObject('object.class');
 o.Methods;
end;

You can thank Jeremy Collins  j...@jcollins.demon.co.uk

regards,
chuck

???????????????????????????????????????????????????
?                                                 ?
?   "There's no point in being grown up if you    ?
?    can't act childish sometimes."               ?
?        The Doctor, Dr. Who: 'Robot'             ?
?                                                 ?
???????????????????????????????????????????????????

Other Threads