Click here to Skip to main content
16,009,114 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hidden dialog Pin
Gaurika Wijeratne29-Apr-02 20:05
Gaurika Wijeratne29-Apr-02 20:05 
GeneralI need help with file select. Pin
Strife Fox29-Apr-02 11:53
Strife Fox29-Apr-02 11:53 
GeneralRe: I need help with file select. Pin
Ravi Bhavnani29-Apr-02 12:27
professionalRavi Bhavnani29-Apr-02 12:27 
GeneralCloseHandle Pin
Peter Liddle29-Apr-02 10:12
Peter Liddle29-Apr-02 10:12 
GeneralRe: CloseHandle Pin
Le centriste29-Apr-02 10:37
Le centriste29-Apr-02 10:37 
GeneralRe: CloseHandle Pin
Nish Nishant29-Apr-02 14:14
sitebuilderNish Nishant29-Apr-02 14:14 
GeneralRe: CloseHandle Pin
Peter Liddle29-Apr-02 21:54
Peter Liddle29-Apr-02 21:54 
GeneralSHFileOperation and win2000 Pin
jafrazee29-Apr-02 9:42
jafrazee29-Apr-02 9:42 
the following code works great on win98 but on win2000 i get the error

Cannot Delete File: Cannot read from the source file or disk.

The program resides on a network drive and is shared between the 98 and 2000 machine. I have debugged dirname and it is the same on both machines.

thank you for any help.

wsprintf(dirname,"%s\\%s%s",Td.Dest_Dir,GetSubDir(),"\0");
HANDLE hFind = FindFirstFile(dirname,&FindFileData);
if(hFind != INVALID_HANDLE_VALUE && FindFileData.dwFileAttributes == FILE_ATTRIBUTE_DIRECTORY){

SHFILEOPSTRUCT shf;
memset(&shf,0,sizeof(shf));
shf.hwnd = selcompany::GetSafeHwnd();
shf.wFunc = FO_DELETE;
shf.pFrom = dirname;
shf.pTo = "\0\0";//NULL;
shf.fFlags = FOF_ALLOWUNDO | FOF_NOCONFIRMATION;
shf.fAnyOperationsAborted = FALSE;
shf.hNameMappings = NULL;
shf.lpszProgressTitle = " ";
if(SHFileOperation(&shf)==0){
//////////////////////clear vars reset window
}
}else{
////////////not valid .....
}
GeneralRe: SHFileOperation and win2000 [corrected] Pin
Joaquín M López Muñoz29-Apr-02 9:51
Joaquín M López Muñoz29-Apr-02 9:51 
GeneralRe: SHFileOperation and win2000 Pin
Nish Nishant29-Apr-02 14:15
sitebuilderNish Nishant29-Apr-02 14:15 
GeneralRe: SHFileOperation and win2000 Pin
Michael Dunn29-Apr-02 14:26
sitebuilderMichael Dunn29-Apr-02 14:26 
GeneralRe: SHFileOperation and win2000 Pin
jafrazee29-Apr-02 16:16
jafrazee29-Apr-02 16:16 
GeneralIActiveDesktop::SetWallpaper Pin
Demetrius29-Apr-02 9:11
Demetrius29-Apr-02 9:11 
GeneralRe: IActiveDesktop::SetWallpaper Pin
Philip Patrick29-Apr-02 10:00
professionalPhilip Patrick29-Apr-02 10:00 
GeneralRe: IActiveDesktop::SetWallpaper Pin
Demetrius29-Apr-02 20:03
Demetrius29-Apr-02 20:03 
GeneralRe: IActiveDesktop::SetWallpaper Pin
Demetrius1-May-02 0:01
Demetrius1-May-02 0:01 
GeneralType Cast! Pin
hph29-Apr-02 8:56
hph29-Apr-02 8:56 
GeneralRe: Type Cast! Pin
Joaquín M López Muñoz29-Apr-02 9:12
Joaquín M López Muñoz29-Apr-02 9:12 
GeneralRe: Type Cast! Pin
hph29-Apr-02 9:26
hph29-Apr-02 9:26 
GeneralRe: Type Cast! Pin
Anders Molin29-Apr-02 10:47
professionalAnders Molin29-Apr-02 10:47 
Generaldialog question Pin
Rajveer29-Apr-02 8:31
Rajveer29-Apr-02 8:31 
GeneralRe: dialog question Pin
Paul M Watt29-Apr-02 8:34
mentorPaul M Watt29-Apr-02 8:34 
GeneralRe: dialog question Pin
act_x29-Apr-02 10:33
act_x29-Apr-02 10:33 
GeneralRe: dialog question Pin
Nish Nishant29-Apr-02 14:17
sitebuilderNish Nishant29-Apr-02 14:17 
Generaledit box variable Pin
Rajveer29-Apr-02 8:00
Rajveer29-Apr-02 8:00 

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.