Article View: borland.public.cppbuilder.internet.web
Article #776HANS G Re: How to get innerHTML for body of TCppWebBrowser Doc
From: caleb
Date: Fri, 10 Mar 2006 10:44
Date: Fri, 10 Mar 2006 10:44
18 lines
1696 bytes
1696 bytes
Hans Galema <notused@notused.nl> wrote: >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. What do you if this is the case to remove the null char(s)? Thanks
Technical Details
Message-ID:
<44116689@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.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-mailReferences:
<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> <441131b1$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 From: "caleb" <n@spam.com> Sender: "caleb" <n@spam.com> Reply-To: "caleb" <n@spam.com> Subject: HANS G Re: How to get innerHTML for body of TCppWebBrowser Doc Newsgroups: borland.public.cppbuilder.internet.web X-User-Info: 71.99.27.59 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> <441131b1$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44116689@newsgroups.borland.com> Date: 10 Mar 2006 03:44:09 -0700 X-Trace: newsgroups.borland.com 1141991049 207.105.83.66 (10 Mar 2006 03:44:09 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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