CodePudding user response:
In Office 2003?CodePudding user response:
Find a solution: not directly introduce mswork. TLH file, the file is # import "C: \ \ Program Files \ \ Microsoft Office \ \ Office12 \ \ MSWORD OLB", after the compiler automatically generated in the middle of the file, but this is namespace repeated mistakes, a complete solution to the following code# import "C: \ Program Files \ Common Files \ Microsoft Shared \ OFFICE12 \ the oledata.mso DLL"
# import "C: \ Program Files \ Common Files \ Microsoft Shared \ VBA \ VBA6 \ VBE6EXT OLB"
# import "C: \ \ Program Files \ \ Microsoft Office \ \ Office12 \ \ MSWORD OLB" no_namespace raw_interfaces_only \
Rename (" FindText _FindText ", ""),
Rename (" RGB ", "_RGB") \
Rename (" Rectangle ", "_Rectangle") \
Rename (" ExitWindows _ExitWindows ", ""),
Rename (" Font ", "WordFont")