openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clarence GUO <clarence.guo...@gmail.com>
Subject A question about StarBasic
Date Mon, 02 Sep 2013 06:47:46 GMT
Hi~
I'm totally green at StarBasic and VBA. Now I have a question about
CreateObject. I installed SAP and have below macros.

Dim SapGuiAuto As Variant
Set SapGuiAuto = CreateObject("SAPGUI")

But I got error "BASIC runtime error. '91' Module cannot be loaded; invalid
format" when executing CreateObject("SAPGUI")
Then I debugged code then found all SbxFactory instances creation failed. I
found below SbxFactory instances but don't know clearly what are they.
SbiFactory, seems it's for create pure StarBasic objects
SbTypeFactory, seems it's for create user defined objects
SbClassFactory, seems it's for create user defined classes
SbOLEFactory, seems it's for create OLE objects
SbFormFactory, is it for create form controls?
SbUnoFactory, seems it's for create UNO structs

In my scenario, which instance should work? Is that SbTypeFactory or
SbClassFactory? But why they don't work? Is that because StarBasic only
support some predefined objects? Or I lost something? How can I enable the
support for SAP objects?
Could anybody teach me?

Thanks
Clarence

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message