Article View: borland.public.cppbuilder.nativeapi
Article #8128Re: Encrypting/Decrypting stringlist
From: Bob Gonder
Date: Tue, 23 Nov 2004 20:35
Date: Tue, 23 Nov 2004 20:35
16 lines
1848 bytes
1848 bytes
roger wrote: >I am using the simple loadfromfile and savetofile... is this not suitable.? I haven't a clue. But if I were in your place, I'd find out very quickly by placing a breakpoint immediately after LoadFromFile(), and checking that the string is as expected. If it is short, then, no, it isn't suitable. If it is always the correct length, then the problem lays further on in your code. If the Load length is correct, then verify in subsequent steps, that the correct length is passed to the decoder. That is basic debugging. Verify at each step, that the data is correct. When the data is incorrect, backtrack until it is correct, then see why the next step corrupts it.
Technical Details
Message-ID:
<ca77q0lfjuvgusulur55l0e64bqo6v9q7m@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<41a37ce2$1@newsgroups.borland.com> <41a385b5$1@newsgroups.borland.com> <41a3907d@newsgroups.borland.com> <41a3917d$1@newsgroups.borland.com> <41a39362$1@newsgroups.borland.com> <v557q0d2d44dd2ada0vrtv3mslvlpbffue@4ax.com> <41a39764$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8141b40d2daa221d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Encrypting/Decrypting stringlist Date: Tue, 23 Nov 2004 12:35:09 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <ca77q0lfjuvgusulur55l0e64bqo6v9q7m@4ax.com> References: <41a37ce2$1@newsgroups.borland.com> <41a385b5$1@newsgroups.borland.com> <41a3907d@newsgroups.borland.com> <41a3917d$1@newsgroups.borland.com> <41a39362$1@newsgroups.borland.com> <v557q0d2d44dd2ada0vrtv3mslvlpbffue@4ax.com> <41a39764$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.77.147.3 X-Trace: newsgroups.borland.com 1101242107 67.77.147.3 (23 Nov 2004 12:35:07 -0700) Lines: 18 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail