windows xp VS win98 FILE-system, porting hints needed.

Started by marco1974, May 15, 2005, 11:16:08 AM

Previous topic - Next topic

marco1974

hello,

i am really , really , really stuck.

The situation :
-------------------------------------------------
I have coded a aplication, its called (C) "Bad cdrom file copy".
it copy`s damaged files from cdrom to the hard-disc.

On win98 i have no problems, and all my bad cdroms are copy`d with this tool.
The project is coded in c/c++ GUI ONLY.
The file copy routines are coded in asm.

This works under ALL 9x fat32 systems.

But when i UPGRADED to am64 1gb ram machine with xp home ed, i noticed that the program crashes.

the crash OCCURS after the program has copy`d exactly 32 (chars like a-z buffer)

When i select .exe file property`s and click on :WINDOWS 98 COMPATIBLE MODE, it runs perfectly as it does on windows 9x.



------------- questions ------------------
- I think the NTFS file system can have a different api, is this true?
(I NEED INFO BUT INFO ABOUT WHAT? API? WINDOWS XP? WHAT DO I NEED? )
A api for using NTFS file system instead of fat32 ? , i dont know where to look for bugs.!


I use Readfile,Writefile and createfile api and Thread functions to speed it all up and keep the progress bar running smootly while tjhe program is doing a LENGHTY copy operation.

--------- psuedo code----------
do
{

readfile( badfile, bufer etc)
writefile(goodfile)

while bytesWritten <filesize;

}

(invoke is faster, masm rules !)



i hope someone can help me.

Thanx anyway, coz this is hard!

chep

marco,

the "basic" api for manipulating files is the same for ntfs as well as fat, ie Create/Read/WriteFile. for me it doesn't look like the api is in cause.

maybe if you post the offending code it will be easier to help you.