VC2005, Word 2003 automation, Compilation error about msword.tlh

H

Huabin

hello, I want to write some formated text and tables from VC++2005 to a word
document. I googled for some days and found some example.
But I do exactly what the sample :http://support.microsoft.com/kb/307473/
does. but I got hundreds of errors about "msword.tlh"

following is the message, can anyone help me out? Thanks a lot

d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(1073) : error C2786: “BOOL
(__stdcall *)(HDC,int,int,int,int)â€: __uuidof çš„æ“作数无效
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(1073) : error C2923:
“_com_IIIDâ€:“Rectangleâ€ä¸æ˜¯å‚数“_Interfaceâ€çš„有效 æ¨¡æ¿ ç±»åž‹å˜é‡
d:\program files\microsoft visual studio
8\vc\platformsdk\include\wingdi.h(3514) : å‚è§â€œRectangleâ€çš„声明
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(1073) : error C3203:
“_com_IIIDâ€: 未专用化的类 æ¨¡æ¿ ä¸èƒ½ç”¨ä½œ æ¨¡æ¿ å˜é‡ï¼Œè¯¥å˜é‡å±žäºŽ æ¨¡æ¿ å‚数“_IIIDâ€ï¼Œåº”为 real 类型
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(7113) : warning C4003:
“ExitWindowsâ€å®çš„实å‚ä¸è¶³
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(7113) : error C2059: 语法错误 :
“常é‡â€
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13448) : error C2146: 语法错误 :
缺少“;â€(在标识符“Fontsâ€çš„å‰é¢)
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13448) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13448) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13503) : error C2146: 语法错误 :
缺少“;â€(在标识符“GetFontsâ€çš„å‰é¢)
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13503) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13503) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(13503) : warning C4183:
“GetFontsâ€: 缺少返回类型;å‡å®šä¸ºè¿”回“intâ€çš„æˆå‘˜å‡½æ•°
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(18685) : error C2146: 语法错误 :
缺少“;â€(在标识符“Assistantâ€çš„å‰é¢)
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(18685) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
d:\my documents\visual studio
2005\projects\wordauto\wordauto\debug\msword.tlh(18685) : error C4430:
缺少类型说明符 - å‡å®šä¸º int。注æ„: C++ ä¸æ”¯æŒé»˜è®¤ int
 

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