I Loaded all buffers with data all at one time.
Buffer01, Buffer02, Buffer03, Buffer04.

Now whenever I check it with Message box for each buffer indivially, I see it as it should be....ONE WORD for Each Buffer.

But when I WriteFile for each buffer the file read all the contents in all four buffers at one time working it way down.

Each indivual Files look like this. Don't look at the periods I put it there only to represent spaces.


When I write to file, View01 should only read.... Man...
Posted on 2002-01-15 13:55:25 by cmax
Your "buffers" are all 4 bytes of length. Means you can store 4
chars, or 3 chars if you want them zero terminated... or of course
you could be putting a pointer in them. In that case, the "ADDR buffer01"
in the messagebox invoke should be "".

Perhaps you should post the code that writes to file... the various
test* variables seem to be properly terminated, but of course all
this depends on how you write the actual data to file.
Posted on 2002-01-15 14:10:46 by f0dder
Ok I will do that soon. I have to go to the project and pull out what the problem is and make a full small example of it. Its preety darn large and junk is everywhere so give me a day or two day to re-set it up and i will post it here. I know i am useing something the wrong way.

Thanks f0dder
Posted on 2002-01-15 15:07:28 by cmax
looks to me like your not setting your pointer right when writing to the file. maybe something like this:

invoke SetFilePointer,hFile,0,0,FILE_END

dont know just throwing this out there:confused:
Posted on 2002-01-15 16:52:05 by smurf
It was all in the way i decarled my db's and dd's all being under a group of subclassed windows. I guest it was a chain reaction... That DWORD Post really did me GREAT Good.

Thanks Guys
Posted on 2002-01-16 07:03:08 by cmax