Click here to Skip to main content
16,004,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: re:Windows VS/C++ and exiting with debuggable/traceable output Pin
Naveen14-Jul-10 18:52
Naveen14-Jul-10 18:52 
GeneralRe: re:Windows VS/C++ and exiting with debuggable/traceable output Pin
Code-o-mat15-Jul-10 2:56
Code-o-mat15-Jul-10 2:56 
GeneralRe: re:Windows VS/C++ and exiting with debuggable/traceable output Pin
Alan Kurlansky15-Jul-10 4:10
Alan Kurlansky15-Jul-10 4:10 
QuestionHow to delete a file in AlluserProfile directory? Pin
0x808514-Jul-10 3:57
0x808514-Jul-10 3:57 
GeneralRe: How to delete a file in AlluserProfile directory? Pin
Aescleal14-Jul-10 4:04
Aescleal14-Jul-10 4:04 
GeneralRe: How to delete a file in AlluserProfile directory? Pin
0x808514-Jul-10 4:09
0x808514-Jul-10 4:09 
GeneralRe: How to delete a file in AlluserProfile directory? Pin
Aescleal14-Jul-10 4:25
Aescleal14-Jul-10 4:25 
AnswerRe: How to delete a file in AlluserProfile directory? Pin
Code-o-mat14-Jul-10 4:47
Code-o-mat14-Jul-10 4:47 
Hi.

Your question isn't quite clear. For one, why do you want to delete that file programatically, what you say suggests you simply want to delete a file, so locate it in windows explorer, right click it and select "Delete". You shouldn't have the need to write a program for that. For two, GetAllUsersProfileDirectory[^] simply gives you the path to the "All Users" folder, it doesn't delete anything, but i will assume you know that and you are simply asking how to use this function, something like this (not tested, error checking ommited):
DWORD charsNeeded;
GetAllUsersProfileDirectory(NULL, &charsNeeded);
TCHAR *FolderPath = new TCHAR[charsNeeded + 1];
GetAllUsersProfileDirectory(FolderPath, &charsNeeded);
... the path should  be in the FolderPath buffer now, do whatever you want with it...
delete []FolderPath;

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> "It doesn't work, fix it" does not qualify as a bug report. <
> Amazing what new features none of the programmers working on the project ever heard of you can learn about when reading what the marketing guys wrote about it. <

QuestionInclude file for using _contolfp_s Pin
narayanagvs14-Jul-10 3:26
narayanagvs14-Jul-10 3:26 
AnswerRe: Include file for using _contolfp_s Pin
Aescleal14-Jul-10 3:59
Aescleal14-Jul-10 3:59 
QuestionHow to change the contrast of NB screen? Pin
ERICKYCheng14-Jul-10 1:50
ERICKYCheng14-Jul-10 1:50 
QuestionWhat field of PE Header tells that whether a valid PE file or not? Pin
glitteringsound14-Jul-10 1:35
glitteringsound14-Jul-10 1:35 
AnswerRe: What field of PE Header tells that whether a valid PE file or not? Pin
Code-o-mat14-Jul-10 2:05
Code-o-mat14-Jul-10 2:05 
AnswerRe: What field of PE Header tells that whether a valid PE file or not? Pin
Luc Pattyn14-Jul-10 2:23
sitebuilderLuc Pattyn14-Jul-10 2:23 
QuestionSetDlgItemText() Pin
raju_shiva14-Jul-10 1:16
raju_shiva14-Jul-10 1:16 
AnswerRe: SetDlgItemText() Pin
CPallini14-Jul-10 1:52
mveCPallini14-Jul-10 1:52 
AnswerRe: SetDlgItemText() Pin
Richard MacCutchan14-Jul-10 5:53
mveRichard MacCutchan14-Jul-10 5:53 
GeneralRe: SetDlgItemText() Pin
raju_shiva14-Jul-10 20:04
raju_shiva14-Jul-10 20:04 
GeneralRe: SetDlgItemText() Pin
CPallini14-Jul-10 20:37
mveCPallini14-Jul-10 20:37 
GeneralRe: SetDlgItemText() Pin
Richard MacCutchan14-Jul-10 21:46
mveRichard MacCutchan14-Jul-10 21:46 
QuestionMaking window half of the screen Pin
Sakhalean14-Jul-10 0:38
Sakhalean14-Jul-10 0:38 
AnswerRe: Making window half of the screen Pin
Niklas L14-Jul-10 0:51
Niklas L14-Jul-10 0:51 
GeneralRe: Making window half of the screen Pin
Sakhalean14-Jul-10 1:29
Sakhalean14-Jul-10 1:29 
AnswerRe: Making window half of the screen[Modified] Pin
Naveen14-Jul-10 0:54
Naveen14-Jul-10 0:54 
AnswerRe: Making window half of the screen Pin
Emilio Garavaglia14-Jul-10 2:08
Emilio Garavaglia14-Jul-10 2:08 

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.