Office Automation via components: Problems with events


2006-06-16 04:31:13 AM
cppbuilder2
Hello,
compared with Delphi there are many problems with C++Builder and Office
Automation, even with BDS2006. My main problems (apart from importing
type libaries and creating automation components of other apps) are events,
which are sometimes ignored or resulting in an Exception or AV.
I'm using the Borland C++Builder Office XP Servers Package (BDS2006),
TWordApplication-component (Word2002 = WordXP) and have just tried the
following events:
OWindowActivate ............. - works
OnWindowBeforeDoubleClick ... - unknown due to Exception OnWindowBeforeRightClick
OnWindowBeforeRightClick .... - De{*word*81} Exception Notification
Project ... raised exception class
EVariantTypeCastError with message 'Could not convert
variant of type (ByRef Boolean) into type (ByRef Smallint)'.
OnWindowDeactivate .......... - works
OnWindowSelectionChange...... - IGNORED (works well with Delphi)
OnWindowSize................. - works
Any comments/hints? I'm really desperate, because I have problems with C++Builder
5, too - summarized many years now.
Thanks and greetings
Udo