[S] OLE automation #import question

Jason Aten (jaten@accessone.com)
Sun, 27 Sep 1998 13:14:55 -0700 (PDT)


I am new to programming SPlus (and to COM) and need to write a C++ client
that accesses the exposed COM/OLE automation interfaces on splus on NT.

I'm having trouble importing the SPlus type library.

In client.cpp I put a:
#import "c:\splus45\cmd\sp4obj.tlb"
line. The compile fails as listed below.

Does anyone recognize what's going wrong here? How do I fix it?
Are there tricks I need to play to get splus automation configured?
I did a register.all.ole.objects() but it didn't help.
The visual basic clients in \samples work fine.

Thanks for any thoughts!
Jason Aten
jaten@accessone.com

in sp4obj.tlh:
line 56: struct __declspec(uuid("f35977ed-563a-11d2-82d8-0040339f5444"))
line 57: /* dispinterface */ double; <---error here
line 58: struct /* coclass */ _double; <---and here
line 59: struct __declspec(uuid("f35977ee-563a-11d2-82d8-0040339f5444"))
line 60: /* dispinterface */ int.dates; <-- error here
line 61: struct /* coclass */ _int.dates; <-- and here
...more of the same...

a sampling of the first couple compiler errors:
H:\...Debug\sp4obj.tlh(57) : error C2628: '__unnamed' followed by
'double' is illegal (did you forget a ';'?)
H:\...\Debug\sp4obj.tlh(57) : warning C4094: untagged 'struct' declared
no symbols
H:\...\Debug\sp4obj.tlh(60) : error C2628: '__unnamed' followed by 'int'
is illegal (did you forget a ';'?)
H:\...\Debug\sp4obj.tlh(60) : warning C4094: untagged 'struct' declared
no symbols
H:\...\Debug\sp4obj.tlh(60) : error C2143: syntax error : missing ';'
before '.'
H:\...\Debug\sp4obj.tlh(60) : error C2143: syntax error : missing ';'
before '.'
H:\...\Debug\sp4obj.tlh(61) : error C2143: syntax error : missing ';'
before '.'
H:\...\Debug\sp4obj.tlh(61) : error C2143: syntax error : missing ';'
before '.'
... (more of the same until compiler gives up at 102 errors)...

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu. To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message: unsubscribe s-news