digitalmars.D - Creating ActiveX in D
- BLS (15/15) Jul 23 2009 Hi,
- Frank Benoit (2/22) Jul 23 2009 in dwt there is that ole package, I think this shows how to do it.
- BLS (5/28) Jul 23 2009 Thanks Frank,
- div0 (21/41) Jul 23 2009 -----BEGIN PGP SIGNED MESSAGE-----
- BLS (4/52) Jul 23 2009 like Java script :)
- John C (2/22) Jul 23 2009 I wouldn't, certainly not merely out of curiosity. It's a mountain of wo...
- Daniel Keep (2/26) Jul 23 2009 That or use VB6. I remember it being pretty much painless. :D
- BLS (7/34) Jul 23 2009 ,...and the result is only usable in VB.
- BLS (5/29) Jul 23 2009 Thanks John,
- John C (5/38) Jul 24 2009 Well, I wouldn't go that far. It's just that some other languages have e...
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
Jul 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örnin dwt there is that ole package, I think this shows how to do it.
Jul 23 2009
Frank Benoit wrote:BLS schrieb: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örnHi, 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örnin dwt there is that ole package, I think this shows how to do it.
Jul 23 2009
-----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örnJust 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 -----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-----
Jul 23 2009
div0 wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 BLS wrote:like Java script :) IDispatch + all the registerWTF thingies ?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örnJust 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).aspxThanks 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-----
Jul 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örnI wouldn't, certainly not merely out of curiosity. It's a mountain of work, and you have to implement lots of pretty obscure interfaces. If you really must do it, find a C++ example and translate it to D.
Jul 23 2009
John C wrote:BLS Wrote:That or use VB6. I remember it being pretty much painless. :DHi, 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�rnI wouldn't, certainly not merely out of curiosity. It's a mountain of work, and you have to implement lots of pretty obscure interfaces. If you really must do it, find a C++ example and translate it to D.
Jul 23 2009
Daniel Keep wrote:John C wrote:,...and the result is only usable in VB. Thanks Daniel, but this response does not help too much :) Why aren't people using D ? VC offers an ActiveX wizard. Borland C++ dito. D -- well I/we am/are using D as secondary language (as 4GL add on language) That's why I have a certain interest in seeing D grow.BLS Wrote:That or use VB6. I remember it being pretty much painless. :DHi, 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�rnI wouldn't, certainly not merely out of curiosity. It's a mountain of work, and you have to implement lots of pretty obscure interfaces. If you really must do it, find a C++ example and translate it to D.
Jul 23 2009
John C wrote:BLS Wrote:Thanks John, If YOU don't give it a chance... then everything is lost. another leak in D +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örnI wouldn't, certainly not merely out of curiosity. It's a mountain of work, and you have to implement lots of pretty obscure interfaces. If you really must do it, find a C++ example and translate it to D.
Jul 23 2009
BLS Wrote:John C wrote:Well, I wouldn't go that far. It's just that some other languages have either much of the legwork for you (eg, MFC/ATL/VCL). But I don't think these belong in the D language or its standard library. It's relatively straightforward to create a COM server in a DLL and register a few classes with the system. Juno's (http://www.dsource.org/projects/juno) COM package shows how it can be done. If you want to do something useful like show a window have allow the user to interact with it, you need to implement IOleObject, IOleControl, IOleInPlaceActiveObject, and so on (http://msdn.microsoft.com/en-us/library/aa751972(VS.85).aspx). And maybe IDispatch. And you need a UI library. So if you're feeling bold... John.BLS Wrote:Thanks John, If YOU don't give it a chance... then everything is lost. another leak in D +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örnI wouldn't, certainly not merely out of curiosity. It's a mountain of work, and you have to implement lots of pretty obscure interfaces. If you really must do it, find a C++ example and translate it to D.
Jul 24 2009