Click here to Skip to main content
Sign Up to vote bad
good
See more: C++
Hello sir/madam,
 
I am trying to delete a file using function DeleteFile. Preview pane is ON and the file is selected in windows explorer. When I call DeleteFile on this file, how could I get its status that file preview is seen in preview pane? Also how could I remove its preview and delete the file? I am new to c++ coding with windows. Please Suggest me functions to get preview status of a directory and to get whether a file is selected.
 
Thanks and regards,
Vishal V.
Posted 13 Dec '12 - 1:04
Edited 13 Dec '12 - 19:05

Comments
jibesh - 14 Dec '12 - 1:55
what is the error you are getting when Delete file is called? can you paste the error you got

1 solution

declare a global variable with boolean type and default value set to false.
Now when PreviewPane Is On and file is selected,set "True" to that global variable.
Then when u try to delete that file,check true/false for that variable,if true (means file is in pane and windows explorer) then delete otherwise not
  Permalink  
Comments
vishal9483 - 14 Dec '12 - 0:44
Thanks for your reply. I am completely new to this type of coding. How could I get the PreviewPane status and file selection status using cpp code?
01010RAJ - 14 Dec '12 - 0:59
sorry yaar,i don't know it with C++,otherwise i will write complete code.So i suggested u only logic.I thought u know about PreviewPane and windows Explorer in context of c++.So Update ur question again.
vishal9483 - 14 Dec '12 - 1:06
I have updated my que. I am behind this from a long time. And not able to get a solution. :(.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 OriginalGriff 355
1 Sergey Alexandrovich Kryukov 338
2 Arun Vasu 315
3 Maciej Los 208
4 Aarti Meswania 180
0 Sergey Alexandrovich Kryukov 9,755
1 OriginalGriff 7,549
2 CPallini 4,018
3 Rohan Leuva 3,362
4 Maciej Los 2,951


Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 14 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid