COM Object

221 views
Skip to first unread message

Luke Mauldin

unread,
May 8, 2012, 9:27:09 AM5/8/12
to golan...@googlegroups.com
I have used SYSCALL to invoke various functions in Windows DLL files.  Is it possible to use SYSCALL or some other functionality to call functions exposed in COM objects?

Luke

Paulo Pinto

unread,
May 8, 2012, 11:18:29 AM5/8/12
to golang-nuts
Several ways are already available

https://github.com/mattn/go-ole/
https://github.com/AllenDang/w32

I prefer the w32 way.

--
Paulo

Luke Mauldin

unread,
May 8, 2012, 11:23:11 AM5/8/12
to golan...@googlegroups.com
It looks like the file:  https://github.com/AllenDang/w32/blob/master/utils.go  already has the necessary code to directly invoke COM operations.  Am I reading the code correctly?  Do you know of any examples using the utils.ComInvoke method?

Luke

mattn

unread,
May 9, 2012, 2:25:32 AM5/9/12
to golan...@googlegroups.com
Or if you want to use low level API to call COM Object, you can use go-ole.

Paulo Pinto

unread,
May 9, 2012, 2:35:26 AM5/9/12
to golang-nuts
No, sorry.

I am yet to use COM with Go.

--
Paulo
Reply all
Reply to author
Forward
0 new messages