Click here to Skip to main content
15,906,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: CListCtrl such problem under windows XP Pin
David Crow24-Oct-08 7:00
David Crow24-Oct-08 7:00 
AnswerRe: CListCtrl such problem under windows XP Pin
fantasy121524-Oct-08 7:25
fantasy121524-Oct-08 7:25 
QuestionRe: CListCtrl such problem under windows XP Pin
David Crow24-Oct-08 7:30
David Crow24-Oct-08 7:30 
AnswerRe: CListCtrl such problem under windows XP [modified] Pin
Rolf Kristensen24-Oct-08 13:55
Rolf Kristensen24-Oct-08 13:55 
GeneralRe: CListCtrl such problem under windows XP Pin
fantasy121525-Oct-08 17:59
fantasy121525-Oct-08 17:59 
GeneralRe: CListCtrl such problem under windows XP Pin
Rolf Kristensen27-Oct-08 11:55
Rolf Kristensen27-Oct-08 11:55 
QuestionSHBrowseForFolder is slow sometimes Pin
bob1697224-Oct-08 4:03
bob1697224-Oct-08 4:03 
Question"SHFILEOPSTRUCT" syntex create problem [modified] Pin
m_mun24-Oct-08 3:20
m_mun24-Oct-08 3:20 
when i pass value for the sfo.pFrom="d:\\Test\\*.txt\0" it delete the file. But i dont know where my software will install. I have also used to get the path by "GetModuleFileName (hMod, szName, sizeof(szName))" and i store path in a 3rd variable. When i used 3rd variable in "sfo.pFrom=3rd variable" It not works.

---------------------------------
char true_path[100];

//returns the path where .exe install---------
TCHAR szName [MAX_PATH];
HMODULE hMod = GetModuleHandle (NULL);
GetModuleFileName (hMod, szName, sizeof(szName));
Return_Path(true_path, szName); //returns the path with double slash like D:\\Test\\

//Remove the files from specified Foleder-------------------
SHFILEOPSTRUCT sfo;
sfo.pTo = NULL;
sfo.hwnd = NULL;
sfo.wFunc = FO_DELETE;


sfo.pFrom = true_path;
sfo.fFlags = FOF_FILESONLY | FOF_NOERRORUI | FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI;
SHFileOperation(&sfo);

modified on Friday, October 24, 2008 9:36 AM

AnswerRe: "SHFILEOPSTRUCT" syntex create problem Pin
SandipG 24-Oct-08 3:29
SandipG 24-Oct-08 3:29 
QuestionRe: "SHFILEOPSTRUCT" syntex create problem Pin
David Crow24-Oct-08 5:09
David Crow24-Oct-08 5:09 
QuestionProblem with stl map Pin
Laan8224-Oct-08 1:43
Laan8224-Oct-08 1:43 
AnswerRe: Problem with stl map Pin
led mike24-Oct-08 4:37
led mike24-Oct-08 4:37 
GeneralRe: Problem with stl map Pin
jeron124-Oct-08 4:47
jeron124-Oct-08 4:47 
GeneralRe: Problem with stl map Pin
David Crow24-Oct-08 5:12
David Crow24-Oct-08 5:12 
GeneralRe: Problem with stl map Pin
led mike24-Oct-08 6:10
led mike24-Oct-08 6:10 
QuestionInstalled products in Windows Pin
Krishnakumartg24-Oct-08 0:54
Krishnakumartg24-Oct-08 0:54 
AnswerRe: Installed products in Windows Pin
Phil J Pearson24-Oct-08 1:10
Phil J Pearson24-Oct-08 1:10 
GeneralRe: Installed products in Windows Pin
Krishnakumartg24-Oct-08 1:14
Krishnakumartg24-Oct-08 1:14 
GeneralRe: Installed products in Windows Pin
Rajesh R Subramanian24-Oct-08 1:39
professionalRajesh R Subramanian24-Oct-08 1:39 
GeneralRe: Installed products in Windows Pin
Rajesh R Subramanian24-Oct-08 1:43
professionalRajesh R Subramanian24-Oct-08 1:43 
GeneralRe: Installed products in Windows Pin
Phil J Pearson24-Oct-08 2:11
Phil J Pearson24-Oct-08 2:11 
AnswerRe: Installed products in Windows Pin
David Crow24-Oct-08 5:13
David Crow24-Oct-08 5:13 
QuestionHow to know whether a handle is opened or colsed ? Pin
kapardhi23-Oct-08 22:46
kapardhi23-Oct-08 22:46 
AnswerRe: How to know whether a handle is opened or colsed ? Pin
Cedric Moonen23-Oct-08 22:53
Cedric Moonen23-Oct-08 22:53 
Questionscroll bar for a group-box control. Pin
gayatri.neelema23-Oct-08 22:10
gayatri.neelema23-Oct-08 22:10 

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.