Article View: borland.public.cppbuilder.internet.web
Article #774Re: Getting TCppWebBrowser as Text From Stream
From: Remy Lebeau (TeamB)
Date: Fri, 10 Mar 2006 00:25
Date: Fri, 10 Mar 2006 00:25
25 lines
1947 bytes
1947 bytes
"caleb" <n@spam.com> wrote in message news:44109fc5$1@newsgroups.borland.com... > For some reason it is giving me fits now. Please be more specific. "Giving fits" is much too vague. Why are you not using the code I already gave you earlier? > I could ShowMessage the entire innerHTML but putting the > BSTR bstr val into an AnsiString again gave a truncated string. You are probably, again, performing an operation that treats the original data as a null-terminated string, without taking the true length of the data into account. That means that any embedded null characters will truncate the data when copied into the AnsiString. That is the same problem that you were having with the TStringList approach. Please show your actual code. Please show the original HTML as-is (or provide the URL where it can be reached). Where is the truncation actually occuring? Gambit
Technical Details
Message-ID:
<4410c8f7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<440f9e16$1@newsgroups.borland.com> <440fe89f$1@newsgroups.borland.com> <44103b71$1@newsgroups.borland.com> <44109c32$1@newsgroups.borland.com> <44109fc5$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,274260257bdc682e X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.web References: <440f9e16$1@newsgroups.borland.com> <440fe89f$1@newsgroups.borland.com> <44103b71$1@newsgroups.borland.com> <44109c32$1@newsgroups.borland.com> <44109fc5$1@newsgroups.borland.com> Subject: Re: Getting TCppWebBrowser as Text From Stream Date: Thu, 9 Mar 2006 16:25:44 -0800 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4410c8f7$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141950711 68.69.17.41 (9 Mar 2006 16:31:51 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail