N
News
Hi,
Recently upgraded to Windows XP and Word 2003.
Have an existing VC++ interface to automate Word 97. No longer have Word 97
installed on the development machine.
The interface has the following imports:
#import "D:\Program Files\Microsoft Office\Office\MSO97.dll"
#import "C:\Program Files\Common Files\Microsoft Shared\Vba\VBEEXT1.olb"
#import "D:\Program Files\Microsoft Office\Office\Msword8.olb"
rename("ExitWindows","WordExitWindows")
I have retrieved the three files from the Word 97 install disk and placed
them on a separate directory. The imports have been changed to read as
follows:
#import "E:\WordComIncludeFiles\Word8\MSO97.dll"
#import "E:\WordComIncludeFiles\Word8\VBEEXT1.olb"
#import "E:\WordComIncludeFiles\Word8\Msword8.olb"
rename("ExitWindows","WordExitWindows")
However, now when I compile the program, I get errors similar to the
following:
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2039:
'_CommandBarsPtr' : is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2146: syntax error :
missing ';' before identifier 'CommandBars'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2501:
'_CommandBarsPtr' : missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2501: 'CommandBars' :
missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2039:
'_CommandBarsPtr' : is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2146: syntax error :
missing ';' before identifier 'GetCommandBars'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2501:
'_CommandBarsPtr' : missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2039: '_CommandBars' :
is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2143: syntax error :
missing ',' before '*'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2059: syntax error :
'*'
and so on.
Am I missing other files from the Word 97 install disk? Or any other
suggestions as to what might be going wrong?
TIA,
Neil Sutter
Recently upgraded to Windows XP and Word 2003.
Have an existing VC++ interface to automate Word 97. No longer have Word 97
installed on the development machine.
The interface has the following imports:
#import "D:\Program Files\Microsoft Office\Office\MSO97.dll"
#import "C:\Program Files\Common Files\Microsoft Shared\Vba\VBEEXT1.olb"
#import "D:\Program Files\Microsoft Office\Office\Msword8.olb"
rename("ExitWindows","WordExitWindows")
I have retrieved the three files from the Word 97 install disk and placed
them on a separate directory. The imports have been changed to read as
follows:
#import "E:\WordComIncludeFiles\Word8\MSO97.dll"
#import "E:\WordComIncludeFiles\Word8\VBEEXT1.olb"
#import "E:\WordComIncludeFiles\Word8\Msword8.olb"
rename("ExitWindows","WordExitWindows")
However, now when I compile the program, I get errors similar to the
following:
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2039:
'_CommandBarsPtr' : is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2146: syntax error :
missing ';' before identifier 'CommandBars'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2501:
'_CommandBarsPtr' : missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(196) : error C2501: 'CommandBars' :
missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2039:
'_CommandBarsPtr' : is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2146: syntax error :
missing ';' before identifier 'GetCommandBars'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(215) : error C2501:
'_CommandBarsPtr' : missing storage-class or type specifiers
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2039: '_CommandBars' :
is not a member of 'Office'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2143: syntax error :
missing ',' before '*'
e:\ngspgms\idmw8r32\release\VBEEXT1.tlh(236) : error C2059: syntax error :
'*'
and so on.
Am I missing other files from the Word 97 install disk? Or any other
suggestions as to what might be going wrong?
TIA,
Neil Sutter