CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Permission Denied

    I am in the process of developing a Exam type Program, one of my question types is a Drag and Drop type question which a User can create by specifying a background Image and then Markers. I store the path to the File in a Access Database and copy the File onto a Server. When a Trainee then gets this question it uses the LOADPICTURE command on a Picture control to buid up the question. This works perfectly if only 1 Trainee is in the question at a time, I get Runtime Error 70 if another trainee trys to do the same question. Can anybody advise, I didn't realise LoadPicture keeps a handle on the File until the form is closed ?


  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: Permission Denied

    Why don't you just make a temporary copy of the image on the client computer in form load or when the user selects the question? I don't think it will hamper the performance much. And you can delete it in form unload.


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

Featured