- ©«¤l
- 472
- ¥DÃD
- 5
- ºëµØ
- 0
- ¿n¤À
- 485
- ÂI¦W
- 0
- §@·~¨t²Î
- Windows
- ³nÅ骩¥»
- MS Office
- ¾\ŪÅv
- 100
- ©Ê§O
- ¨k
- ¨Ó¦Û
- »´ä
- µù¥U®É¶¡
- 2010-7-4
- ³Ì«áµn¿ý
- 2014-12-28
|
¦]¤u§@»Ýn¡An§â¦a§}¤¤Â½^¿é¤J½Ķºô§}http://cdict.net/ ©Î¤¤µØ¶l¬F (¦]»Ý¤U©Ô¬G©ñ±ó)
¸ê®Æ¬ù2000¦hµ§¡A ...
paddyliu µoªí©ó 2012-11-5 15:05
¤£¦n·N«ä, ºC¤F
¥unhttp://cdict.net/ ¤£§ïª©, ¤]¥i¥H¥Îªº.- Public Function getCdit(strIn As Variant) As Variant
- Dim objXML
- Dim strResult As String
- Dim strResultFin As String
- Dim lngPosStart As Long
- Dim lngPosEnd As Long
-
- Set objXML = CreateObject("MSXML2.ServerXMLHTTP")
- objXML.Open "GET", "http://cdict.net/?q=" & strIn, False
- Call objXML.send
- strResult = objXML.responseText
- strResultFin = ""
- lngPosStart = InStr(1, strResult, "<div id='eng_addr'>", vbTextCompare)
- If lngPosStart > 0 Then
- lngPosEnd = InStr(lngPosStart, strResult, "</div>", vbTextCompare)
- strResultFin = Mid(strResult, lngPosStart + Len("<div id='eng_addr'>"), lngPosEnd - lngPosStart - Len("<div id='eng_addr'>"))
- End If
- getCdit = strResultFin
- Set objXML = Nothing
- End Function
½Æ»s¥N½X
|
|