| |
|
|
Richi | Hi, can someone say How I The DLL, in xProfan anspreche.
thanks
chHtmlConvert32.dll
[...]
The Win 32 DLL provides 2 functions:
HTMLToTextA (ANSI Version) HTMLToTextW (Unicode Version)
BOOL HTMLToText( LPCTSTR szHTML, // address of HTML string to convert LPTSTR szText, // address of buffer receiving output Text BOOL bPreferASCII, LPTSTR szCharset, // address of buffer receiving the charset int nCharsetLen, // size of charset buffer UINT* pCodePage // address of integer receiving the codepage );
Parameters szHTML Points to the character string to be converted.
szText
Points to the buffer that receives the output Text. The size of this buffer is assumed to be equal to the length of szHTML + 1!
bPreferASCII
Specifies whether some often used unicode characters wants be translated to similar ASCII characters, or hardship. sea table below:
Unicode character /ASCII character
‑ 8209 - 45 – 8211 - 45 — 8212 - 45 ’ 8217 ' 39 “ 8220 " 34 ” 8221 " 34 • 8226 * 42
szCharset
Points to the buffer that receives the charset that has been specified in the HTML input. Diese parameter can be NULL.
nCharsetLen
Specifies the size in characters of the buffer pointed to by the szCharset parameter.
pCodePage
Points to on integer variable that receives the codepage number of the HTML input. For example, if the HTML input specifies the charset "Windows-1252" the codepage number wants be 1252. Diese parameter can be NULL. |
|
|
| |
|
|
|
Dieter Zornow | I had time to langer Time what probiert with the Dll, is relatively simply, there it only 2 functions gives
DEF HTMLToTextA(6) ! "chHtmlConvert32.dll","HTMLToTextA" DEF HTMLToTextW(6) ! "chHtmlConvert32.dll","HTMLToTextW"
The HTML-File must You then with blockread in a Memory-Variable reading and processing I had the then about so.
HTMLToTextA(html#,buf#,1,charset#,50,0)
where in html# The eingelesene Website standing and buf# the Result in Text. charset# I had on 50 dimensioniert. The Dll has but too Error produced, therefore have I not moreover chasing and again forget. white my Version the Dll not any more, Perhaps there a newer
hope the helps you. |
|
|
| XProfan X2Er ist ein Mann wie ein Baum. Sie nennen ihn Bonsai., Win 7 32 bit und Win 7 64 bit, mit XProfan X2 | 11/14/13 ▲ |
|
|
|
|
Richi | thanks Dieter, now can I The DLL too test times... I hope I get The Error the DLL something into handle |
|
|
| |
|
|