Click here to Skip to main content
15,921,463 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Too many variables !?! Pin
nencini17-Nov-02 19:39
nencini17-Nov-02 19:39 
GeneralRe: Too many variables !?! Pin
Christian Graus17-Nov-02 21:48
protectorChristian Graus17-Nov-02 21:48 
GeneralRe: Too many variables !?! Pin
Michael P Butler18-Nov-02 0:14
Michael P Butler18-Nov-02 0:14 
GeneralRe: Too many variables !?! Pin
nencini18-Nov-02 4:42
nencini18-Nov-02 4:42 
GeneralRe: Too many variables !?! Pin
Rickard Andersson2017-Nov-02 23:54
Rickard Andersson2017-Nov-02 23:54 
QuestionHow can i get mfc42ud.lib? Pin
sages17-Nov-02 16:09
sages17-Nov-02 16:09 
AnswerRe: How can i get mfc42ud.lib? Pin
Michael Dunn17-Nov-02 16:13
sitebuilderMichael Dunn17-Nov-02 16:13 
GeneralSHFileOperation Error 1026 Pin
J. Schermerhorn17-Nov-02 14:35
J. Schermerhorn17-Nov-02 14:35 
I'm receiving an error code of 1026 when I call SHFileOperation. I have read to documentation on the SHFILEOPSTRUCT structure and it indicates that I have to append an additional NULL at the end of the string to indicate the end of pFrom. I have done so, however I'm still receiving a 1026 error code. What am I doing wrong?

Help would be very much appreciated!

<br />
hResult = psfInternetFiles->EnumObjects(NULL, SHCONTF_NONFOLDERS | SHCONTF_FOLDERS | SHCONTF_INCLUDEHIDDEN, &ppenumFiles);<br />
			<br />
while (hResult = ppenumFiles->Next(1, &pidlInvFile, &lceltRecFetched) == S_OK && lceltRecFetched == 1)<br />
{<br />
   memset(szSourceFiles, '\0', sizeof(szSourceFiles));<br />
   SHGetPathFromIDList(pidlFiles, szSourceFiles);<br />
   hResult = psfInternetFiles->GetDisplayNameOf(pidlInvFile, SHGDN_INFOLDER, &filename);<br />
   hResult = StrRetToBuf(&filename, pidlInvFile, strFilename, MAX_PATH);<br />
<br />
   hResult = psfInternetFiles->GetAttributesOf(1, (LPCITEMIDLIST *)  &pidlInvFile, &uAttr);<br />
<br />
   if(!psfFirstFolder)<br />
   {<br />
      uAttr = SFGAO_FOLDER;<br />
      psfInternetFiles->GetAttributesOf(1, (LPCITEMIDLIST *) &pidlInvFile, &uAttr);<br />
   if(uAttr & SFGAO_FOLDER)<br />
   {<br />
      hResult = psfInternetFiles->BindToObject(pidlInvFile, NULL, IID_IShellFolder, (LPVOID *) &psfFirstFolder);<br />
   }<br />
   }<br />
   pMalloc->Free(pidlInvFile);<br />
   				<br />
   strcat(szSourceFiles, "\\");<br />
   strcat(szSourceFiles, strFilename);<br />
   <br />
   sfo.hwnd = NULL;<br />
   sfo.wFunc = FO_DELETE;			<br />
   sfo.pFrom = szSourceFiles;<br />
   sfo.pTo = NULL;<br />
   sfo.fFlags = FOF_NOCONFIRMATION | FOF_SILENT | FOF_NOERRORUI;<br />
<br />
   hResult = SHFileOperation(&sfo);	<br />
   SHChangeNotify(SHCNE_DELETE | SHCNE_DISKEVENTS , SHCNF_DWORD, 0, 0);<br />
}<br />

Questionis there any mistake in it ? Pin
imran_rafique17-Nov-02 13:53
imran_rafique17-Nov-02 13:53 
AnswerRe: is there any mistake in it ? Pin
Christian Graus17-Nov-02 14:01
protectorChristian Graus17-Nov-02 14:01 
GeneralRe: is there any mistake in it ? Pin
imran_rafique17-Nov-02 14:11
imran_rafique17-Nov-02 14:11 
GeneralRe: is there any mistake in it ? Pin
Christian Graus17-Nov-02 14:15
protectorChristian Graus17-Nov-02 14:15 
GeneralRe: is there any mistake in it ? Pin
imran_rafique17-Nov-02 14:31
imran_rafique17-Nov-02 14:31 
GeneralRe: is there any mistake in it ? Pin
Christian Graus17-Nov-02 15:49
protectorChristian Graus17-Nov-02 15:49 
GeneralRe: is there any mistake in it ? Pin
imran_rafique18-Nov-02 14:46
imran_rafique18-Nov-02 14:46 
Generalsemi-transparent overlays in client areas Pin
devvvy17-Nov-02 13:42
devvvy17-Nov-02 13:42 
GeneralRe: semi-transparent overlays in client areas Pin
Christian Graus17-Nov-02 14:03
protectorChristian Graus17-Nov-02 14:03 
GeneralRe: semi-transparent overlays in client areas Pin
Anonymous17-Nov-02 14:30
Anonymous17-Nov-02 14:30 
GeneralLots of property pages 2 Pin
DanYELL17-Nov-02 8:40
DanYELL17-Nov-02 8:40 
GeneralLots of property pages Pin
DanYELL17-Nov-02 8:39
DanYELL17-Nov-02 8:39 
GeneralRe: Lots of property pages Pin
Pavel Klocek17-Nov-02 10:43
Pavel Klocek17-Nov-02 10:43 
GeneralRe: Lots of property pages Pin
Jim A. Johnson17-Nov-02 10:49
Jim A. Johnson17-Nov-02 10:49 
GeneralBitmap Question Pin
Ken Mazaika17-Nov-02 8:33
Ken Mazaika17-Nov-02 8:33 
GeneralRe: Bitmap Question Pin
Christian Graus17-Nov-02 8:56
protectorChristian Graus17-Nov-02 8:56 
GeneralRe: Bitmap Question Pin
Ken Mazaika17-Nov-02 9:54
Ken Mazaika17-Nov-02 9:54 

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.