Hi *,
We are trying to use an external COM DLL within StarBasic.
This url explains the problem,
http://www.oooforum.org/forum/viewtopic.phtml?p=38717
The code is similar to the following:
- - -
Sub GW_WhoAmI(ByRef MyName As String, ByRef MyAddr As String,
ByRef MyPhone As String, ByRef MyFAX As String)
Dim .....
'this is the newly added code from the above post
oleService = createUnoService("com.sun.star.bridge.OleObjectFactory")
gw = oleService.createInstance("NovellGroupWareSession")
'Set gw = CreateObject("NovellGroupWareSession")
'this is what I was doing
gw.login '<----******this is where the error shows up ********
- - -
This generates an error, in our case:
"The Dispatch Object does not support ITypeInfo!"
?What am I doing wrong?
The code seems to be right, because another object (Excel application)
can be used succesfuly.
The forum-topic refers to a specification of UDK:
http://udk.openoffice.org/common/man/draft/com_lang_spec.html#a3
Apparently we need to link our COM Types to UNO types, we have a .tlb
file, but it is unclear how to use or do this.
Thanks for any pointers,
Cor
--
Cor Nouws
Arnhem - Netherlands
nl.OpenOffice.org - marketing contact
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]