Thread overview
Creating ActiveX in D
Jul 23, 2009
BLS
Jul 23, 2009
Frank Benoit
Jul 24, 2009
BLS
Jul 23, 2009
div0
Jul 24, 2009
BLS
July 23, 2009
Hi,
Sergey G. ask (by accident ;) ) about : How to create an ActiveX control in D.
Now, I am curious : Is it possible to create an ActiveX Control In D ?

Something along :
class Component : IDispatch
{
}

instead of :

class Component : IUnknown
{
}

and if so, how to build an AX control in D, guess as DLL + D runtime ???

Thank's for enlighten me.
björn
July 23, 2009
BLS schrieb:
> Hi,
> Sergey G. ask (by accident ;) ) about : How to create an ActiveX control
> in D.
> Now, I am curious : Is it possible to create an ActiveX Control In D ?
> 
> Something along :
> class Component : IDispatch
> {
> }
> 
> instead of :
> 
> class Component : IUnknown
> {
> }
> 
> and if so, how to build an AX control in D, guess as DLL + D runtime ???
> 
> Thank's for enlighten me.
> björn

in dwt there is that ole package, I think this shows how to do it.
July 23, 2009
BLS wrote:
> Hi,
> Sergey G. ask (by accident ;) ) about : How to create an ActiveX control
> in D.
> Now, I am curious : Is it possible to create an ActiveX Control In D ?
> 
> Something along :
> class Component : IDispatch
> {
> }
> 
> instead of :
> 
> class Component : IUnknown
> {
> }
> 
> and if so, how to build an AX control in D, guess as DLL + D runtime ???
> 
> Thank's for enlighten me.
> björn

Just implementing IDispatch doesn't make a COM component an ActiveX Control. IDispatch is used as a calling interface for older scripting languages like VB6.

ActiveX controls have to implement a whole bunch of interfaces. They are a right arse ache to do and I can highly recommend staying clear of it.

If you are really interested:

http://msdn.microsoft.com/en-us/library/aa268985(VS.60).aspx

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
July 24, 2009
Frank Benoit wrote:
> BLS schrieb:
>> Hi,
>> Sergey G. ask (by accident ;) ) about : How to create an ActiveX control
>> in D.
>> Now, I am curious : Is it possible to create an ActiveX Control In D ?
>>
>> Something along :
>> class Component : IDispatch
>> {
>> }
>>
>> instead of :
>>
>> class Component : IUnknown
>> {
>> }
>>
>> and if so, how to build an AX control in D, guess as DLL + D runtime ???
>>
>> Thank's for enlighten me.
>> björn
> 
> in dwt there is that ole package, I think this shows how to do it.

Thanks Frank,
guess the DWT OLE package is more OLE consumer orientated. probably I am wrong...will have a look. ( maybe, just read the msg from John C. .. not really encouraging ) , nevertheless :) thanks again, björn
July 24, 2009
div0 wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> BLS wrote:
>> Hi,
>> Sergey G. ask (by accident ;) ) about : How to create an ActiveX control
>> in D.
>> Now, I am curious : Is it possible to create an ActiveX Control In D ?
>>
>> Something along :
>> class Component : IDispatch
>> {
>> }
>>
>> instead of :
>>
>> class Component : IUnknown
>> {
>> }
>>
>> and if so, how to build an AX control in D, guess as DLL + D runtime ???
>>
>> Thank's for enlighten me.
>> björn
> 
> Just implementing IDispatch doesn't make a COM component an ActiveX
> Control. IDispatch is used as a calling interface for older scripting
> languages like VB6.

like Java script :)

IDispatch + all the registerWTF thingies  ?
> 
> ActiveX controls have to implement a whole bunch of interfaces.
> They are a right arse ache to do and I can highly recommend staying
> clear of it.
> 
> If you are really interested:
> 
> http://msdn.microsoft.com/en-us/library/aa268985(VS.60).aspx
> 

Thanks for the pointer!

> - --
> My enormous talent is exceeded only by my outrageous laziness.
> http://www.ssTk.co.uk
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iD8DBQFKaLgCT9LetA9XoXwRAr/RAKDFuT4TGzfwN6naWmXQtNX6RQpJHQCfYOO2
> Lr/oaPwHjROCACUs+B8lS1o=
> =42Ui
> -----END PGP SIGNATURE-----