Click here to Skip to main content
16,005,178 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Timer function preempted Pin
18-Oct-01 5:34
suss18-Oct-01 5:34 
GeneralDetermining if a file is running Pin
billb211218-Oct-01 4:02
billb211218-Oct-01 4:02 
GeneralRe: Determining if a file is running Pin
Tomasz Sowinski18-Oct-01 4:08
Tomasz Sowinski18-Oct-01 4:08 
GeneralRe: Determining if a file is running Pin
billb211218-Oct-01 4:21
billb211218-Oct-01 4:21 
GeneralRe: Determining if a file is running Pin
Jörgen Sigvardsson18-Oct-01 4:11
Jörgen Sigvardsson18-Oct-01 4:11 
GeneralSimple Console Question. Pin
The_Server18-Oct-01 3:54
The_Server18-Oct-01 3:54 
GeneralRe: Simple Console Question. Pin
Tomasz Sowinski18-Oct-01 3:59
Tomasz Sowinski18-Oct-01 3:59 
GeneralDelete File Fails Pin
Michael Martin18-Oct-01 3:53
professionalMichael Martin18-Oct-01 3:53 
I posted earlier this week about a problem I had where I could delete files but not remove a directory. Someone mentioned they once had a similar problem which was due to a shortcut existing that referenced the directory. As it happened I had three on my Desktop which were to be deleted in the next step of the program.

I have changed to order to delete the shortcuts from the Desktop. This is successful. Now when I try to delete the files with ::DeleteFile() or CFile::Remove() it fails. The return value from ::GetLastError() after ::DeleteFile() is ACCESS_DENIED. This is strange as earlier this week I could delete these files.

I am running Windows 2000 Professional SP2 VC++ 6 SP5. The files I am trying to delete were added by me to a directory that I created. They are icons and batch files that are (I am positive) not in use.

Anyone have any idea what the problem could be.


Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018

"Don't belong. Never join. Think for yourself. Peace"
- Victor Stone
GeneralRe: Delete File Fails Pin
Tomasz Sowinski18-Oct-01 3:57
Tomasz Sowinski18-Oct-01 3:57 
GeneralRe: Delete File Fails Pin
Michael Martin18-Oct-01 4:07
professionalMichael Martin18-Oct-01 4:07 
GeneralGetting floppy drive info Pin
Brigg Thorp18-Oct-01 3:10
Brigg Thorp18-Oct-01 3:10 
GeneralRe: Getting floppy drive info Pin
Jon Hulatt18-Oct-01 4:58
Jon Hulatt18-Oct-01 4:58 
QuestionMFC DAO - Portable? Pin
Simon Walton18-Oct-01 2:36
Simon Walton18-Oct-01 2:36 
AnswerRe: MFC DAO - Portable? Pin
Christian Graus18-Oct-01 3:03
protectorChristian Graus18-Oct-01 3:03 
AnswerRe: MFC DAO - Portable? Pin
kumar_p318-Oct-01 3:04
kumar_p318-Oct-01 3:04 
GeneralRe: MFC DAO - Portable? Pin
Simon Walton18-Oct-01 7:20
Simon Walton18-Oct-01 7:20 
GeneralRe: MFC DAO - Portable? Pin
Carlos Antollini18-Oct-01 8:05
Carlos Antollini18-Oct-01 8:05 
GeneralReusing a std::vector<> object after performing an erase() Pin
Franz Klein18-Oct-01 2:36
Franz Klein18-Oct-01 2:36 
GeneralRe: Reusing a std::vector<> object after performing an erase() Pin
Christian Graus18-Oct-01 3:07
protectorChristian Graus18-Oct-01 3:07 
GeneralRe: Reusing a std::vector<> object after performing an erase() Pin
Franz Klein18-Oct-01 4:12
Franz Klein18-Oct-01 4:12 
GeneralRe: Reusing a std::vector<> object after performing an erase() Pin
Tomasz Sowinski18-Oct-01 4:30
Tomasz Sowinski18-Oct-01 4:30 
GeneralRe: Reusing a std::vector<> object after performing an erase() Pin
Mike Burston18-Oct-01 13:05
Mike Burston18-Oct-01 13:05 
GeneralRe: Reusing a std::vector<> object after performing an erase() Pin
George Anescu18-Oct-01 5:29
George Anescu18-Oct-01 5:29 
GeneralColored Rectangles as background Pin
18-Oct-01 2:33
suss18-Oct-01 2:33 
GeneralRe: Colored Rectangles as background Pin
kumar_p318-Oct-01 3:01
kumar_p318-Oct-01 3:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.