|Think about Loose Coupling|
Alas, I have automated Word, Acess, Excel (and probably a few others), but never VFP. I have been doing a little digging and find very little information on automating VFP; there's tons of stuff if you go the other direction and use VFP to automate something else.
That doesn't do you any good, however.
I've debugged a few header files; where I start is Google Groups with a copy of the error message(s) in hand.
Hentzenwerke is probably the leading authority on things FoxPro. Many of their books are available in electronic editions available for immediate download. Even though it's a version "behind", you might find Hacker's Guide to Visual FoxPro 7.0 useful; it appears to have several pages at least on using VFP as an automation server. (My hardcopy is for VFP 6.0 and maybe worthless for your purposes, but let me know if you want me to look at something for you.)
If I find anything else, I'll be sure to let you know. If you like, you could always /msg me your e-mail address, and we could, for example, compare header files or whatnot without sucking on the Monastery's bandwidth.