Thanks for your help, problem is soleved now However, I still consider this an awfull practice. MSDN coming with Visual C++ 6.0 never mentions theis flag. That means that all older programs will live in ilusion thet they have implemented single file deletion (example might be already mentioned Total Commander). They might be surprised a lot just like me. I managed to compile the code only by manually definig this flag (value found by google). Anyway, enough ranting, thanks. Miroslav Rajcic