Re[4]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov

Hello Robert,

Thursday, May 16, 2002, 10:59:27 AM, you wrote:

RC Does this work on FAT too?

I don't know - its not clear from the documentation. Someone has to
test it on FAT. However this combined with an an call to
SetFileAttributes () before it should be sufficient.

Btw the snippet below is wrong - FILE_ATTRIBUTES_READONLY should be
removed from the call. I type too fast :(

 -Original Message-
 From: Pavel Tsekov [mailto:[EMAIL PROTECTED]] 
 Sent: Thursday, May 16, 2002 6:33 PM

RC Ok here is how to fix this issues I've just tried it on my XP Home and
RC it worked fine.

RC HANDLE h = CreateFile(test.c,
RC   DELETE,
RC   0, // We want it all :)
RC   NULL,
RC   OPEN_EXISTING,
RC   FILE_ATTRIBUTE_READONLY /*to be compatible*/
 |
Bah, this here is an error --+
RC   | FILE_FLAG_DELETE_ON_CLOSE, NULL);
RC CloseHandle (h);




Re[5]: setup.exe and inuse files for X

2002-05-16 Thread Pavel Tsekov

Ok, I've tested it on my WinXP Home on NTFS, FAT and FAT32. The
following snippet removes the file no matter the filesystem
(the Get/SetFileAttributes is required for FAT/FAT32 only):

HANDLE hFile;
DWORD dwAttr = GetFileAttributes (test.dat);
SetFileAttributes (test.dat, dwAttr  ~FILE_ATTRIBUTE_READONLY);
hFile = CreateFile (test.dat, DELETE, 0, NULL, OPEN_EXISTING,
  FILE_FLAG_DELETE_ON_CLOSE, NULL);
CloseHandle (hFile);

RC Does this work on FAT too?

PT I don't know - its not clear from the documentation. Someone has to
PT test it on FAT. However this combined with an an call to
PT SetFileAttributes () before it should be sufficient.




Re: Kylix Installation???

2002-01-11 Thread Pavel Tsekov

Whoa - you're trying to run a linux application on windows!
Maybe you need to visit http://cygwin.com and see what's the
aim of the project...

Marcus Vinicius Eiffle Duarte wrote:

 Hi, folks!
 
 has anybody installed Kylix under Cygwin/XFree?
 I tried running the installer, but it doesn't seem to like Cygwin, and it
 fails to run complaining of the versions of gcc and a few libraries.
 If anybody knows the way to get it running, I would like to know.