Results 1 to 11 of 11

Thread: Could someone test this code? (Regard this as some kind of poll)

Hybrid View

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Could someone test this code? (Regard this as some kind of poll)

    I have changed the thread name to trigger fresh interest if possible

    Rather than continue posting to this thread I thought I'd start a new one. I have tried this code for setting a time stamp to a directory. However, the line with the "CreateFile" statement is giving me error code -1 = "invalid handle value". Would anyone try and see if it works for him/her?
    Last edited by krtxmrtz; May 15th, 2006 at 08:22 AM.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  2. #2

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Could someone test this code?

    Bump
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  3. #3
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: Could someone test this code?

    I tested it on windows 2000 and it works. You need to press the choose folder button first before you click on apply to folder, otherwise it will produce an error (the handle to the folder is not correct).
    Frans

  4. #4

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Could someone test this code?

    Quote Originally Posted by Frans C
    I tested it on windows 2000 and it works. You need to press the choose folder button first before you click on apply to folder, otherwise it will produce an error (the handle to the folder is not correct).
    Thank you Frans.
    Well, it seems that the FILE_FLAG_BACKUP_SEMANTICS flag is only valid on Windows NT/2000/XP and I was trying to run this demo on Win98. I thought it wouldn't work on WinXP because I tried SIMILAR code and it failed, but I still haven't tried this exact code. Hopefully this evening I'll have a chance to try it.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  5. #5

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Could someone test this code?

    Quote Originally Posted by Frans C
    I tested it on windows 2000 and it works. You need to press the choose folder button first before you click on apply to folder, otherwise it will produce an error (the handle to the folder is not correct).
    Now I've tested it on WinXP and it's still giving an error at the CreateFile statement. I really don't know why this happens as the API functions are some kind of blackboxes to me.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  6. #6

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Could someone test this code?

    Quote Originally Posted by Frans C
    I tested it on windows 2000 and it works. You need to press the choose folder button first before you click on apply to folder, otherwise it will produce an error (the handle to the folder is not correct).
    Would someone try that code in Windows XP? I'd like to know if it works at all or just in W2000.
    Last edited by krtxmrtz; May 8th, 2006 at 10:54 AM.
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  7. #7

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Could someone test this code?

    Quote Originally Posted by krtxmrtz
    Would someone try that code in Windows XP? I'd like to know if it works at all or just in W2000.
    All right, I think PlanetSourceCode' codes may not be accessible to everybody, so I've attached the project I'd like you guys to test in Windows XP.
    Attached Files Attached Files
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

  8. #8

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Unhappy Re: Could someone test this code?

    bump
    Lottery is a tax on people who are bad at maths
    If only mosquitoes sucked fat instead of blood...
    To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width