🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #775

Re: How to get innerHTML for body of TCppWebBrowser Doc

#775
From: Hans Galema
Date: Fri, 10 Mar 2006 07:55
31 lines
2228 bytes
caleb wrote:

> The stringlist has the whole file.

How did you check ?

> the text property does not and it gets chopped off in arbitrary
> fashion.  for example "...#cccccc" will appear as "...#cc" in 
> the text property.

Arbitrary ? And only once ? On a very long line ?

And after that ? So the Text property only contains the first piece
of the file ?

Can you reproduce the problem with a smaller file ?

If you would post that file as attachment in borland.public.attachments
we could have a look.

If the file contains a null character then that means that there is
a byte with the value 0. So if you examined the file with a
hexediter you would see 0x00. If you would load the file in memory
you could use strlen() to determine if there is a null char.

  char *text = loadfileinmemory ( path, &filelen );

  if ( strlen(text) != filelen )
	ShowMessage ( "file contains null char");

Hans.
Technical Details
Message-ID: <441131b1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4410459e$1@newsgroups.borland.com> <44104e98$1@newsgroups.borland.com> <441051bc$1@newsgroups.borland.com> <4410545d$1@newsgroups.borland.com> <44106c98$1@newsgroups.borland.com> <44108920$1@newsgroups.borland.com> <44108edc@newsgroups.borland.com> <441093b3$1@newsgroups.borland.com> <44109964$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,485d3d8ad6145f77
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 10 Mar 2006 08:55:18 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.web
Subject: Re: How to get  innerHTML  for body of TCppWebBrowser Doc
References: <4410459e$1@newsgroups.borland.com> <44104e98$1@newsgroups.borland.com> <441051bc$1@newsgroups.borland.com> <4410545d$1@newsgroups.borland.com> <44106c98$1@newsgroups.borland.com> <44108920$1@newsgroups.borland.com> <44108edc@newsgroups.borland.com> <441093b3$1@newsgroups.borland.com> <44109964$1@newsgroups.borland.com>
In-Reply-To: <44109964$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <441131b1$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1141977521 145.98.201.248 (9 Mar 2006 23:58:41 -0700)
Lines: 31
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail