www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Adam Ruppe's COM library - calling COM object from dynamic code eg VBA

reply "Laeeth Isharc" <Laeeth.nospam nospam-laeeth.com> writes:
Hi.

With a few changes, I have got the source working for the client 
and server code for hello.

The COM object isn't recognised by dynamic languages such as 
Python and VBA, even after registering.

I think I need to add type library fields in the registry.

Any tips or sample code  from someone who has done this ?

I have two COM books here, but will have to find the time to read 
them...

Thanks.


Laeeth.
Jun 30 2015
next sibling parent reply "Kagamin" <spam here.lot> writes:
I did it only for javascript, it doesn't need type library. First 
thing to do is to check whether registration succeeded. I prefer 
to register to HKCR for testing purposes.
Jul 01 2015
parent "Kagamin" <spam here.lot> writes:
On Wednesday, 1 July 2015 at 09:32:23 UTC, Kagamin wrote:
 I did it only for javascript, it doesn't need type library. 
 First thing to do is to check whether registration succeeded. I 
 prefer to register to HKCR for testing purposes.
fix HKCU
Jul 01 2015
prev sibling parent reply "Adam D. Ruppe" <destructionator gmail.com> writes:
On Wednesday, 1 July 2015 at 05:47:44 UTC, Laeeth Isharc wrote:
 The COM object isn't recognised by dynamic languages such as 
 Python and VBA, even after registering.
You use the regsvr32 program to do it?
Jul 01 2015
parent "Laeeth Isharc" <Laeeth.nospam nospam-laeeth.com> writes:
On Wednesday, 1 July 2015 at 13:43:08 UTC, Adam D. Ruppe wrote:
 On Wednesday, 1 July 2015 at 05:47:44 UTC, Laeeth Isharc wrote:
 The COM object isn't recognised by dynamic languages such as 
 Python and VBA, even after registering.
You use the regsvr32 program to do it?
Yes...
Jul 01 2015