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
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