Here is the info: LPSHELLFOLDER lpShellFolder = 0; LPSHELLFOLDER lpDesktopFolder = 0;
Neha
Posts
-
ParseDisplayName: my computer missing -
ParseDisplayName: my computer missingHi I am using the following code to get the desktop contents: if (SUCCEEDED(SHGetDesktopFolder(&lpDesktopFolder))) { //strpath: has the desktop folder path. MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, (LPCTSTR)((strPath != "\\MyComputer")?strPath:""), -1, olePath, MAX_PATH); hr = lpDesktopFolder->ParseDisplayName(NULL, NULL, olePath, &chEaten, &pidl, &dwAttributes); if(hr != S_OK) { lpDesktopFolder->Release(); return; } hr = lpDesktopFolder->BindToObject(pidl, 0, IID_IShellFolder, (LPVOID *)&lpShellFolder); If I use this code I can't find *My Computer* and icons. But if I use SHGetDesktopFolder(&lpShellFolder) I can see the *My computer* in the list. Could any one please tell me where I am going wrong? Regards Neha
-
Serialize HANDLEHi How can I serialize the HANDLE? Regards Neha
-
Transparent Text to bitmapHi I want to convert the text into transparent bitmap. How this can be done? Regards Neha
-
Include headers.Thanks for the reply. Here is the code In X.h #include "y.h" Class X { } In Y.h #include "X.h" Class X; Class Y { X m_Item; } In this case I will get a error as 'm_Item' uses undefined class 'X' How to slove this?
-
Include headers.Hi I have a header file x.h in this I have #include "y.h" In y.h file I want to use the class declared in x.h. But if I include x.h in y.h file, it is giving me an error saying class X is not decalred. Could anyone tell me how to solve this? Regards Neha
-
Printing an icon....Hi, How can I print the icon? DrawIcon()doesn't work with printer dc... Regards Neha
-
Drop the content to Toolbar buttonHi, I want to implement the toolbar button to receive the dropped contents. I am using COleDropTarget and I have registered that using m_DropTarget.Register(this). It works for a window, List control...But It doesn't work incase of toolbar buttons. Could anyone knows how to implement this? Regards Neha
-
CFormView::OnInitialUpdate()Hi, I have a code as below: Class x: public CFormView { public: virtual void OnInitialUpdate(); } Class y: Public X { public: Virtual void OnInitialUpdate(); } Class z: class y { public: void OnInitialUpdate(); } When I call OnInitialUpdate () for class z it throws an exception at CFormView::OnInitialUpdate() of Class x. Could any one please help me? Regards Neha
-
m_pRecentFileList...pDoc is an XMLDocument object: Here is the source: IXMLDOMDocument *pDoc; CoCreateInstance(CLSID_DOMDocument, NULL, CLSCTX_INPROC_SERVER, IID_IXMLDOMDocument, (void**)&pDoc)
-
m_pRecentFileList...Hi, In my application I get the recent opened file from m_pRecentFileList variable. Here is the code CString the_File=(*m_pRecentFileList)[0]; OpenDocument(the_File); In OpenDocument I have pDoc->Load(CComVariant(lpszPathName)); Here it always fails. But If I give the path directly, ie CString the_File="c:\\text.abc" It works fine. Regards Neha
-
Cut, Copy and PasteHi Is there any way to copy the file object to clipboard? I want to implement Cut, Copy and Paste for files like explorer does. Regards Neha
-
Cut, copy and paste options...Thanks for the reply.. But I want to implement it in the same way as the explorer does. That is if I say select any file and say copy it should copy the file to clipbord and I should be able to paste it anywhere.
-
ShellExecute and File PropertiesThanks for the info...
-
Cut, copy and paste options...Hi I want to implement Cut,copy,paste for explorer items. I tried with SHFileOperation() But I didn't find a proper way for Cut and Paste. One more this how can I create a new folder? Could anyone please help me to solve this? Regards Neha
-
ShellExecute and File PropertiesEven I have the same problem. I am getting the error as ERROR_NO_ASSOCIATION.
-
MFC SerializationI have a class structure as follows: Class A: public CObject { } Class B: Public A { } Now I want to serialize pointer class B using CArchive. How can this be done? Regards
-
Detachable tab control...Hi I want to create a tab control in such a wany that when user drags the tab button it should display it as separate dialog box. Also if user drags a dialog box on to that, it should set as a tab button. Any idea how this can be done? Regards Neha
-
error C2065: 'DDX_Time' : undeclared identifierHi, I am trying compile a source code, now i am getting this error: error C2065: 'DDX_Time' : undeclared identifier I am using VC++6.0. Could any one tell me why is it so? Regards Neha
-
Problem with DoModal()You are right. I had fixed the problem... Thanks ......