Click here to Skip to main content
15,902,198 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionStymied by interop Pin
Mark Schumann28-Apr-08 9:27
Mark Schumann28-Apr-08 9:27 
AnswerRe: Stymied by interop Pin
led mike28-Apr-08 9:30
led mike28-Apr-08 9:30 
QuestionRe: Stymied by interop Pin
Mark Schumann1-May-08 8:56
Mark Schumann1-May-08 8:56 
GeneralMake a CAB file for PocketPc2003 Pin
AlexB4728-Apr-08 4:02
AlexB4728-Apr-08 4:02 
GeneralCross Post. Please ignore Pin
Pete O'Hanlon28-Apr-08 21:59
mvePete O'Hanlon28-Apr-08 21:59 
GeneralApplication.Run() Parameters Pin
saneng28-Apr-08 3:08
saneng28-Apr-08 3:08 
GeneralDouble Post Pin
Giorgi Dalakishvili28-Apr-08 3:50
mentorGiorgi Dalakishvili28-Apr-08 3:50 
QuestionHow to write this code using IFileOperation for Vista Pin
Mustanseer M S28-Apr-08 0:31
Mustanseer M S28-Apr-08 0:31 
Hello,



I have this piece of code which i am using in my application developed on VS2003. i have migrated the code to VS2005 and have cleaned the code, but now i have to port it to Vista.



The code uses SHFILEOPSTRUCT and SHFileOperation which are nwo deprecated and a new interface IFileOperation has been introduced for Vista. I did a lot of head banging but still i could not figure out how to modify my code except the use of SetOperationFlag() function of IFileInterface. So please see if you could help.



Here are the snippets



//For Deleting a file<br />
<br />
SHFILEOPSTRUCT shfileop;<br />
<br />
shfileop.hwnd = NULL;<br />
<br />
shfileop.wFunc = FO_DELETE;<br />
<br />
shfileop.pFrom = pstrfrom;<br />
<br />
shfileop.pTo = NULL;<br />
<br />
shfileop.fFlags = FOF_NOCONFIRMATION;<br />
<br />
shfileop.fAnyOperationsAborted = 0;<br />
<br />
shfileop.hNameMappings = 0;<br />
<br />
shfileop.lpszProgressTitle = 0;<br />
<br />
SHFileOperation(&shfileop);




I get the pFrom and pTo from LPCTSTR type strings. I would also like to know about the double null termination of strings.



Thanks and regards,

Mustanseer
AnswerRe: How to write this code using IFileOperation for Vista Pin
Mike Dimmick28-Apr-08 3:00
Mike Dimmick28-Apr-08 3:00 
GeneralRe: How to write this code using IFileOperation for Vista Pin
Mustanseer M S28-Apr-08 3:42
Mustanseer M S28-Apr-08 3:42 
Generalabout PDB files Pin
sujithkumarsl27-Apr-08 18:28
sujithkumarsl27-Apr-08 18:28 
GeneralRe: about PDB files Pin
BJ Basañes27-Apr-08 19:28
BJ Basañes27-Apr-08 19:28 
GeneralRe: about PDB files Pin
sujithkumarsl27-Apr-08 20:15
sujithkumarsl27-Apr-08 20:15 
GeneralRe: about PDB files Pin
BJ Basañes27-Apr-08 22:03
BJ Basañes27-Apr-08 22:03 
GeneralRe: about PDB files Pin
sujithkumarsl27-Apr-08 22:28
sujithkumarsl27-Apr-08 22:28 
GeneralRe: about PDB files Pin
Pete O'Hanlon27-Apr-08 23:33
mvePete O'Hanlon27-Apr-08 23:33 
GeneralRe: about PDB files Pin
sujithkumarsl28-Apr-08 0:24
sujithkumarsl28-Apr-08 0:24 
GeneralRe: about PDB files Pin
Roger Alsing28-Apr-08 6:42
Roger Alsing28-Apr-08 6:42 
GeneralRe: about PDB files Pin
Zoltan Balazs28-Apr-08 0:37
Zoltan Balazs28-Apr-08 0:37 
GeneralRe: about PDB files Pin
sujithkumarsl28-Apr-08 18:12
sujithkumarsl28-Apr-08 18:12 
GeneralRe: about PDB files Pin
Zoltan Balazs28-Apr-08 20:07
Zoltan Balazs28-Apr-08 20:07 
GeneralRe: about PDB files Pin
sujithkumarsl28-Apr-08 22:38
sujithkumarsl28-Apr-08 22:38 
GeneralRe: about PDB files Pin
PIEBALDconsult29-Apr-08 7:32
mvePIEBALDconsult29-Apr-08 7:32 
GeneralRe: about PDB files Pin
sujithkumarsl29-Apr-08 17:31
sujithkumarsl29-Apr-08 17:31 
Generali need some help about the licence,plz!!! Pin
skyline227-Apr-08 18:23
skyline227-Apr-08 18:23 

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.