S
Stevie G
Hi group,
I'm trying to upgrade an old application to work with MS Word 11 and
can't seem to get around the following error (and I suspect related
warnings):
\debug\mso.tlh(11133) : warning C4003: not enough actual parameters
for macro 'GetFirstChild'
\debug\msword.tlh(38330) : warning C4003: not enough actual parameters
for macro 'GetNextSibling'
\debug\msword.tlh(38330) : error C2059: syntax error : ','
I've changed my code to import the new office, word and VB libraries:
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\
\MSO.DLL" rename("RGB","MSORGB")
rename("GetFirstChild","MSOGetFirstChild")
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\
\VBE6EXT.OLB"
#import "C:\\Program Files\\Microsoft Office\\Office11\\MSWORD.OLB"
rename("ExitWindows","WordExitWindows")
I also understand that I have to rename some parameters to avoid
conflict. The RGB and ExitWindows renames solve issues but renaming
GetFirstChild and GetNextSibling don't seem to help with the errors.
Has anyone else had these issues or have any help for me?
Thanks in advance, Steve.
I'm trying to upgrade an old application to work with MS Word 11 and
can't seem to get around the following error (and I suspect related
warnings):
\debug\mso.tlh(11133) : warning C4003: not enough actual parameters
for macro 'GetFirstChild'
\debug\msword.tlh(38330) : warning C4003: not enough actual parameters
for macro 'GetNextSibling'
\debug\msword.tlh(38330) : error C2059: syntax error : ','
I've changed my code to import the new office, word and VB libraries:
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE11\
\MSO.DLL" rename("RGB","MSORGB")
rename("GetFirstChild","MSOGetFirstChild")
#import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\
\VBE6EXT.OLB"
#import "C:\\Program Files\\Microsoft Office\\Office11\\MSWORD.OLB"
rename("ExitWindows","WordExitWindows")
I also understand that I have to rename some parameters to avoid
conflict. The RGB and ExitWindows renames solve issues but renaming
GetFirstChild and GetNextSibling don't seem to help with the errors.
Has anyone else had these issues or have any help for me?
Thanks in advance, Steve.