Click here to Skip to main content
15,916,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCreateThread parameter Pin
rp_suman9-Jun-08 22:23
rp_suman9-Jun-08 22:23 
AnswerRe: CreateThread parameter PinPopular
Cedric Moonen9-Jun-08 22:26
Cedric Moonen9-Jun-08 22:26 
GeneralRe: CreateThread parameter Pin
rp_suman9-Jun-08 22:41
rp_suman9-Jun-08 22:41 
GeneralRe: CreateThread parameter Pin
jeron110-Jun-08 4:09
jeron110-Jun-08 4:09 
AnswerRe: CreateThread parameter Pin
Joe Woodbury10-Jun-08 6:19
professionalJoe Woodbury10-Jun-08 6:19 
GeneralRe: CreateThread parameter Pin
JudyL_MD10-Jun-08 6:43
JudyL_MD10-Jun-08 6:43 
QuestionOpen a debug view while opening a document Pin
beko9-Jun-08 21:33
beko9-Jun-08 21:33 
QuestionWeird windows problem Pin
mihai1239-Jun-08 21:14
mihai1239-Jun-08 21:14 
Hello, I have a weird problem regarding the deleting of a folder.

I'm trying to delete a folder using this code

            TCHAR exeDirectory[MAX_PATH];
GetCurrentDirectory(sizeof(exeDirecotry) - 1, exeDirectory);
CString szStoreFolder;
            szStoreFolder.Format(_T("%s\\td10"),exeDirectory);
                        ......
                     SHFILEOPSTRUCT op;
    op.pFrom = szFolderName;
    //op.pTo = _T("");      //will be ignored
    op.wFunc = FO_DELETE;
    op.fFlags = FOF_SILENT | FOF_NOCONFIRMATION;
    op.fAnyOperationsAborted = false;
    op.hNameMappings = NULL;
    int er= SHFileOperation(&op);
    _tprintf(_T("Eroare %d "),er);

The problem is that it doesn't work every time.
It depends on the exeDirectory name and on the folder name (the folder that I'm trying to delete)

For instance if the exeDirectory is TEST and the folder name is Td10 it doesn't work. If the exeDirectory is ZIP_OPTION and the folder name TD10 it works. If the exe folder is TEST and the folder name is TemporaryData it works but now for the ZIP_OPTION folder it dosn't work.

I made a debug and the szFolder contains the correct path.

I've got the error 1026.

I tried to take the path with CFileFinder but still the same problem appears. I tried also to take the short folder name but it the same. I do not know what to do.

Any help or advice would be appreciate
Tnx
AnswerRe: Weird windows problem Pin
Michael Schubert9-Jun-08 22:18
Michael Schubert9-Jun-08 22:18 
AnswerRe: Weird windows problem Pin
mihai1239-Jun-08 22:37
mihai1239-Jun-08 22:37 
AnswerRe: Weird windows problem Pin
krmed10-Jun-08 1:53
krmed10-Jun-08 1:53 
GeneralRe: Weird windows problem Pin
mihai12310-Jun-08 3:08
mihai12310-Jun-08 3:08 
QuestionPositioning toolbar and statusbar Pin
KASR19-Jun-08 20:24
KASR19-Jun-08 20:24 
AnswerRe: Positioning toolbar and statusbar Pin
Hamid_RT9-Jun-08 20:37
Hamid_RT9-Jun-08 20:37 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 20:40
KASR19-Jun-08 20:40 
GeneralRe: Positioning toolbar and statusbar Pin
Hamid_RT9-Jun-08 21:40
Hamid_RT9-Jun-08 21:40 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 20:43
KASR19-Jun-08 20:43 
GeneralRe: Positioning toolbar and statusbar Pin
Hamid_RT9-Jun-08 20:45
Hamid_RT9-Jun-08 20:45 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 20:51
KASR19-Jun-08 20:51 
GeneralRe: Positioning toolbar and statusbar Pin
Hamid_RT9-Jun-08 21:08
Hamid_RT9-Jun-08 21:08 
GeneralRe: Positioning toolbar and statusbar Pin
Cedric Moonen9-Jun-08 21:12
Cedric Moonen9-Jun-08 21:12 
GeneralRe: Positioning toolbar and statusbar Pin
Hamid_RT9-Jun-08 21:18
Hamid_RT9-Jun-08 21:18 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 21:32
KASR19-Jun-08 21:32 
GeneralRe: Positioning toolbar and statusbar Pin
Cedric Moonen9-Jun-08 21:40
Cedric Moonen9-Jun-08 21:40 
GeneralRe: Positioning toolbar and statusbar Pin
KASR19-Jun-08 22:38
KASR19-Jun-08 22:38 

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.