Home > Software engineering >  Introducing the msword. Error TLH file
Introducing the msword. Error TLH file

Time:10-12

For a great god, and I are writing a word document MFC operation procedure, the introduction of msword. TLH file, compile a msword. TLH ": No to the file or directory, I was using a vs2010, an, how to solve this problem

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")
  • Related