MS Word Automation from C++

N

news.microsoft.com

Is there any way to access MS Word features from ATL, without using MFC, but
at a little higher level than using Invoke of IDispatch interface? I've
tried to import MSO9.dll, which comes with Office2k, but IDL generated by
ITypeLib viewer doesn't want to get compiled (generates lot of errors).

Thanks for advance

Areg
 
N

nabeel moeen

am using Word XP

nabeel moeen said:
ok there was a problem with one of the paths
now i'm getting the following error:

not enough actual parameters for macro 'ExitWindows'

generated
 
D

Dave Hart

There are some functions in Word with the same name
as standard Windows functions, but different parameters.

You need to modify your #import line:

#import "c:\Program Files\Microsoft Office\Office\msword9.olb" \
no_dual_interfaces \
rename("ExitWindows", "ExitWindowsWord")

Dave Hart

ok there was a problem with one of the paths
now i'm getting the following error:

not enough actual parameters for macro 'ExitWindows'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top