線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:2931
推到 Plurk!
推到 Facebook!

MSHTML_TLB.pas編譯錯誤?

答題得分者是:hagar
weston
一般會員


發表:8
回覆:7
積分:3
註冊:2007-02-07

發送簡訊給我
#1 引用回覆 回覆 發表時間:2007-06-19 02:30:31 IP:218.174.xxx.xxx 訂閱
  想請教各問有經驗的大大!最近看了很多前輩網頁資料擷取,有用到MSHTML_TLB檔案,我是從Library輸出的,不過編譯不能成功,我的版本是  Delphi6.0,IE是5.0,Delphi裝都是預設的,ActiveX也有裝,就是奇怪,Google好像都沒有這樣...不過我倒是沒有這個檔案mshtml.tlb,錯誤訊息如下,請有經驗大大能告訴我這是少哪個檔案? 謝謝 感恩 ^ ^

[Warning] MSHTML_TLB.pas(97611): Redeclaration of 'className' hides a member in the base class
[Error] MSHTML_TLB.pas(97982): Undeclared identifier: 'Get_fontFamily'
[Error] MSHTML_TLB.pas(97998): Undeclared identifier: 'Get_fontStyle'
[Error] MSHTML_TLB.pas(98014): Undeclared identifier: 'Get_fontVariant'
[Error] MSHTML_TLB.pas(98030): Undeclared identifier: 'Get_fontWeight'
[Error] MSHTML_TLB.pas(98035): Undeclared identifier: 'Set_fontSize'
[Error] MSHTML_TLB.pas(98059): Undeclared identifier: 'Get_font'
[Error] MSHTML_TLB.pas(98064): Undeclared identifier: 'Set_color'
[Error] MSHTML_TLB.pas(98088): Undeclared identifier: 'Get_background'
[Error] MSHTML_TLB.pas(98093): Undeclared identifier: 'Set_backgroundColor'
[Error] MSHTML_TLB.pas(98117): Undeclared identifier: 'Get_backgroundImage'
[Error] MSHTML_TLB.pas(98133): Undeclared identifier: 'Get_backgroundRepeat'
[Error] MSHTML_TLB.pas(98149): Undeclared identifier: 'Get_backgroundAttachment'
[Error] MSHTML_TLB.pas(98165): Undeclared identifier: 'Get_backgroundPosition'
[Error] MSHTML_TLB.pas(98170): Undeclared identifier: 'Set_backgroundPositionX'
[Error] MSHTML_TLB.pas(98183): Undeclared identifier: 'Set_backgroundPositionY'
[Error] MSHTML_TLB.pas(98196): Undeclared identifier: 'Set_wordSpacing'
[Error] MSHTML_TLB.pas(98209): Undeclared identifier: 'Set_letterSpacing'
[Error] MSHTML_TLB.pas(98233): Undeclared identifier: 'Get_textDecoration'
[Error] MSHTML_TLB.pas(98238): Undeclared identifier: 'Set_textDecorationNone'
[Error] MSHTML_TLB.pas(98243): Undeclared identifier: 'Get_textDecorationNone'
[Error] MSHTML_TLB.pas(98248): Undeclared identifier: 'Set_textDecorationUnderline'
[Error] MSHTML_TLB.pas(98253): Undeclared identifier: 'Get_textDecorationUnderline'
[Error] MSHTML_TLB.pas(98258): Undeclared identifier: 'Set_textDecorationOverline'
[Error] MSHTML_TLB.pas(98263): Undeclared identifier: 'Get_textDecorationOverline'
[Error] MSHTML_TLB.pas(98268): Undeclared identifier: 'Set_textDecorationLineThrough'
[Error] MSHTML_TLB.pas(98273): Undeclared identifier: 'Get_textDecorationLineThrough'
[Error] MSHTML_TLB.pas(98278): Undeclared identifier: 'Set_textDecorationBlink'
[Error] MSHTML_TLB.pas(98283): Undeclared identifier: 'Get_textDecorationBlink'
[Error] MSHTML_TLB.pas(98288): Undeclared identifier: 'Set_verticalAlign'
[Error] MSHTML_TLB.pas(98312): Undeclared identifier: 'Get_textTransform'
[Error] MSHTML_TLB.pas(98328): Undeclared identifier: 'Get_textAlign'
[Error] MSHTML_TLB.pas(98333): Undeclared identifier: 'Set_textIndent'
[Error] MSHTML_TLB.pas(98346): Undeclared identifier: 'Set_lineHeight'
[Error] MSHTML_TLB.pas(98359): Undeclared identifier: 'Set_marginTop'
[Error] MSHTML_TLB.pas(98372): Undeclared identifier: 'Set_marginRight'
[Error] MSHTML_TLB.pas(98385): Undeclared identifier: 'Set_marginBottom'
[Error] MSHTML_TLB.pas(98398): Undeclared identifier: 'Set_marginLeft'
[Error] MSHTML_TLB.pas(98422): Undeclared identifier: 'Get_margin'
[Error] MSHTML_TLB.pas(98427): Undeclared identifier: 'Set_paddingTop'
[Error] MSHTML_TLB.pas(98440): Undeclared identifier: 'Set_paddingRight'
[Error] MSHTML_TLB.pas(98453): Undeclared identifier: 'Set_paddingBottom'
[Error] MSHTML_TLB.pas(98466): Undeclared identifier: 'Set_paddingLeft'
[Error] MSHTML_TLB.pas(98490): Undeclared identifier: 'Get_padding'
[Error] MSHTML_TLB.pas(98506): Undeclared identifier: 'Get_border'
[Error] MSHTML_TLB.pas(98522): Undeclared identifier: 'Get_borderTop'
[Error] MSHTML_TLB.pas(98538): Undeclared identifier: 'Get_borderRight'
[Error] MSHTML_TLB.pas(98554): Undeclared identifier: 'Get_borderBottom'
[Error] MSHTML_TLB.pas(98570): Undeclared identifier: 'Get_borderLeft'
[Error] MSHTML_TLB.pas(98586): Undeclared identifier: 'Get_borderColor'
[Error] MSHTML_TLB.pas(98591): Undeclared identifier: 'Set_borderTopColor'
[Error] MSHTML_TLB.pas(98604): Undeclared identifier: 'Set_borderRightColor'
[Error] MSHTML_TLB.pas(98617): Undeclared identifier: 'Set_borderBottomColor'
[Error] MSHTML_TLB.pas(98630): Undeclared identifier: 'Set_borderLeftColor'
[Error] MSHTML_TLB.pas(98654): Undeclared identifier: 'Get_borderWidth'
[Error] MSHTML_TLB.pas(98659): Undeclared identifier: 'Set_borderTopWidth'
[Error] MSHTML_TLB.pas(98672): Undeclared identifier: 'Set_borderRightWidth'
[Error] MSHTML_TLB.pas(98685): Undeclared identifier: 'Set_borderBottomWidth'
[Error] MSHTML_TLB.pas(98698): Undeclared identifier: 'Set_borderLeftWidth'
[Error] MSHTML_TLB.pas(98722): Undeclared identifier: 'Get_borderStyle'
[Error] MSHTML_TLB.pas(98738): Undeclared identifier: 'Get_borderTopStyle'
[Error] MSHTML_TLB.pas(98754): Undeclared identifier: 'Get_borderRightStyle'
[Error] MSHTML_TLB.pas(98770): Undeclared identifier: 'Get_borderBottomStyle'
[Error] MSHTML_TLB.pas(98786): Undeclared identifier: 'Get_borderLeftStyle'
[Error] MSHTML_TLB.pas(98791): Undeclared identifier: 'Set_width'
[Error] MSHTML_TLB.pas(98804): Undeclared identifier: 'Set_height'
[Error] MSHTML_TLB.pas(98828): Undeclared identifier: 'Get_styleFloat'
[Error] MSHTML_TLB.pas(98844): Undeclared identifier: 'Get_clear'
[Error] MSHTML_TLB.pas(98860): Undeclared identifier: 'Get_display'
[Error] MSHTML_TLB.pas(98876): Undeclared identifier: 'Get_visibility'
[Error] MSHTML_TLB.pas(98892): Undeclared identifier: 'Get_listStyleType'
[Error] MSHTML_TLB.pas(98908): Undeclared identifier: 'Get_listStylePosition'
[Error] MSHTML_TLB.pas(98924): Undeclared identifier: 'Get_listStyleImage'
[Error] MSHTML_TLB.pas(98940): Undeclared identifier: 'Get_listStyle'
[Error] MSHTML_TLB.pas(98956): Undeclared identifier: 'Get_whiteSpace'
[Error] MSHTML_TLB.pas(98961): Undeclared identifier: 'Set_top'
[Error] MSHTML_TLB.pas(98974): Undeclared identifier: 'Set_left'
[Error] MSHTML_TLB.pas(98987): Undeclared identifier: 'Set_zIndex'
[Error] MSHTML_TLB.pas(99011): Undeclared identifier: 'Get_overflow'
[Error] MSHTML_TLB.pas(99027): Undeclared identifier: 'Get_pageBreakBefore'
[Error] MSHTML_TLB.pas(99043): Undeclared identifier: 'Get_pageBreakAfter'
[Error] MSHTML_TLB.pas(99059): Undeclared identifier: 'Get_cssText'
[Error] MSHTML_TLB.pas(99064): Undeclared identifier: 'Set_pixelTop'
[Error] MSHTML_TLB.pas(99069): Undeclared identifier: 'Get_pixelTop'
[Error] MSHTML_TLB.pas(99074): Undeclared identifier: 'Set_pixelLeft'
[Error] MSHTML_TLB.pas(99079): Undeclared identifier: 'Get_pixelLeft'
[Error] MSHTML_TLB.pas(99084): Undeclared identifier: 'Set_pixelWidth'
[Error] MSHTML_TLB.pas(99089): Undeclared identifier: 'Get_pixelWidth'
[Error] MSHTML_TLB.pas(99094): Undeclared identifier: 'Set_pixelHeight'
[Error] MSHTML_TLB.pas(99099): Undeclared identifier: 'Get_pixelHeight'
[Error] MSHTML_TLB.pas(99104): Undeclared identifier: 'Set_posTop'
[Error] MSHTML_TLB.pas(99109): Undeclared identifier: 'Get_posTop'
[Error] MSHTML_TLB.pas(99114): Undeclared identifier: 'Set_posLeft'
[Error] MSHTML_TLB.pas(99119): Undeclared identifier: 'Get_posLeft'
[Error] MSHTML_TLB.pas(99124): Undeclared identifier: 'Set_posWidth'
[Error] MSHTML_TLB.pas(99129): Undeclared identifier: 'Get_posWidth'
[Error] MSHTML_TLB.pas(99134): Undeclared identifier: 'Set_posHeight'
[Error] MSHTML_TLB.pas(99139): Undeclared identifier: 'Get_posHeight'
[Error] MSHTML_TLB.pas(99155): Undeclared identifier: 'Get_cursor'
[Error] MSHTML_TLB.pas(99171): Undeclared identifier: 'Get_clip'
[Error] MSHTML_TLB.pas(99187): Undeclared identifier: 'Get_filter'
[Fatal Error] MSHTML_TLB.pas(99203): Compilation terminated; too many errors
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#2 引用回覆 回覆 發表時間:2007-06-20 09:00:55 IP:210.242.xxx.xxx 未訂閱
似乎是 Delphi6 的 Bug, 更新 patch 試試
參考: http://topic.csdn.net/t/20020112/10/473198.html
weston
一般會員


發表:8
回覆:7
積分:3
註冊:2007-02-07

發送簡訊給我
#3 引用回覆 回覆 發表時間:2007-06-20 21:42:45 IP:218.174.xxx.xxx 訂閱

謝謝版主的回答!我上Borland 網站更新檔都要帳號登入,可惜我是海盜試用版,沒有帳號,請問好心的大大,哪邊還有更新檔可以下載,或者其他方法可以順利編譯MSHTML_TLB.pas檔...?不然就沒辦法抓網頁資訊了.....><...
wameng
版主


發表:31
回覆:1336
積分:1183
註冊:2004-09-16

發送簡訊給我
#4 引用回覆 回覆 發表時間:2007-06-20 21:59:49 IP:219.86.xxx.xxx 訂閱
This is a known bug in Delphi 6 Import Library, if you have Delphi 5, Import the Microsoft HTML using it, and use the generated unit with Delphi 6, the Import library that came with Delphi 7 work fine too.
Coffee
版主


發表:31
回覆:878
積分:561
註冊:2006-11-15

發送簡訊給我
#5 引用回覆 回覆 發表時間:2007-06-20 22:37:12 IP:203.73.xxx.xxx 訂閱
本論壇不討論、提供破解及相關問題(?)
------
不論是否我發的文,在能力範圍皆很樂意為大家回答問題。
為了補我的能力不足之處,以及讓答案可以被重複的使用,希望大家能儘量以公開的方式問問題。
在引述到我的文時自然會儘量替各位想辦法,謝謝大家!
hagar
版主


發表:143
回覆:4056
積分:4445
註冊:2002-04-14

發送簡訊給我
#6 引用回覆 回覆 發表時間:2007-06-21 13:44:36 IP:59.124.xxx.xxx 未訂閱
weston
一般會員


發表:8
回覆:7
積分:3
註冊:2007-02-07

發送簡訊給我
#7 引用回覆 回覆 發表時間:2007-06-21 19:36:36 IP:218.174.xxx.xxx 訂閱
謝謝 hagar版主 和 wameng版主熱心回覆,我的回答總算是解決了!果然高手還是不一樣,之前在站內搜尋都沒有找到相同類似的提問? 原來還可以這樣和哪樣...真是感恩!不過由於積分只能給一各,只好給hagar版主了,畢竟最先熱心回應且最終也得到解答,其他人熱心的幫忙也一樣感謝喔.!
系統時間:2017-12-11 19:16:50
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!