Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Redirect the output Pin
led mike15-Feb-08 4:08
led mike15-Feb-08 4:08 
GeneralRe: Redirect the output Pin
David Crow15-Feb-08 4:09
David Crow15-Feb-08 4:09 
QuestionHow to assign/ map Left arrow key to a specific character suppose letter 'L' Pin
Abhijit D. Babar15-Feb-08 2:38
Abhijit D. Babar15-Feb-08 2:38 
AnswerRe: How to assign/ map Left arrow key to a specific character suppose letter 'L' Pin
Rajesh R Subramanian15-Feb-08 2:51
professionalRajesh R Subramanian15-Feb-08 2:51 
AnswerRe: How to assign/ map Left arrow key to a specific character suppose letter 'L' Pin
Maximilien15-Feb-08 2:57
Maximilien15-Feb-08 2:57 
GeneralRe: How to assign/ map Left arrow key to a specific character suppose letter 'L' Pin
Rajesh R Subramanian15-Feb-08 3:42
professionalRajesh R Subramanian15-Feb-08 3:42 
GeneralBackground color of CToolBar. [modified] Pin
Paresh Chitte15-Feb-08 1:24
Paresh Chitte15-Feb-08 1:24 
GeneralRecycle Bin Files and Folders Pin
john563214-Feb-08 23:30
john563214-Feb-08 23:30 
I'm writing my first shell extension dll, and I'm trying to figure out how to pass the Recycle bin files/folders anme CShellExt::InvokeCommand at right click of menu item. I am getting others files and folders name.
Some sennipt is attached.



<br />
void CCoMenHandler::GetSelectedFiles(LPCITEMIDLIST pidlFolder,IDataObject *pdtobj)<br />
{<br />
// get these paths into a CStringArray<br />
g_szSelectedFiles.RemoveAll();<br />
<br />
// fetch all of the file names we're supposed to operate on<br />
if (pdtobj) <br />
{<br />
pdtobj-&gt;AddRef();<br />
<br />
STGMEDIUM medium;<br />
FORMATETC fe = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};<br />
<br />
<br />
HRESULT hr = pdtobj-&gt;GetData (&amp;fe, &amp;medium);<br />
if (FAILED (hr))<br />
{<br />
return ;<br />
}<br />
<br />
// buffer to receive filenames<br />
char path[MAX_PATH];<br />
<br />
// how many are there?<br />
UINT fileCount = DragQueryFile((HDROP)medium.hGlobal, 0xFFFFFFFF,<br />
path, MAX_PATH);<br />
<br />
if (fileCount&gt;0)<br />
{<br />
// avoid wasting mem when this thing gets filled in<br />
g_szSelectedFiles.SetSize(fileCount);<br />
<br />
// stash the paths in our CStringArray<br />
for (UINT i=0;i&lt;fileCount;i++) <br />
{<br />
// clear old path<br />
memset(path, 0, MAX_PATH);<br />
// fetch new path<br />
if (DragQueryFile((HDROP)medium.hGlobal, i, path, MAX_PATH)) <br />
{<br />
g_szSelectedFiles.SetAt(i, path);<br />
//AfxMessageBox(path);<br />
}<br />
}<br />
<br />
g_szSelectedFiles.FreeExtra();<br />
}<br />
<br />
// free our path memory - we have the info in our CStringArray<br />
ReleaseStgMedium(&amp;medium);<br />
}<br />
<br />
<br />
}<br />


Thanx in advance.:
Questionmy code breaks unique pointer rule? Pin
George_George14-Feb-08 23:06
George_George14-Feb-08 23:06 
GeneralError while exporting a static member form a DLL Pin
Prasanth M V14-Feb-08 23:04
Prasanth M V14-Feb-08 23:04 
GeneralRe: Error while exporting a static member form a DLL Pin
CPallini14-Feb-08 23:23
mveCPallini14-Feb-08 23:23 
GeneralRe: Error while exporting a static member form a DLL Pin
Prasanth M V17-Feb-08 22:15
Prasanth M V17-Feb-08 22:15 
GeneralRe: Error while exporting a static member form a DLL Pin
CPallini17-Feb-08 22:35
mveCPallini17-Feb-08 22:35 
GeneralRe: Error while exporting a static member form a DLL Pin
Prasanth M V17-Feb-08 23:01
Prasanth M V17-Feb-08 23:01 
GeneralRe: Error while exporting a static member form a DLL Pin
CPallini18-Feb-08 0:53
mveCPallini18-Feb-08 0:53 
GeneralRe: Error while exporting a static member form a DLL Pin
Prasanth M V19-Feb-08 0:19
Prasanth M V19-Feb-08 0:19 
GeneralRe: Error while exporting a static member form a DLL Pin
Prasanth M V19-Feb-08 0:19
Prasanth M V19-Feb-08 0:19 
GeneralRe: Error while exporting a static member form a DLL Pin
Cedric Moonen14-Feb-08 23:36
Cedric Moonen14-Feb-08 23:36 
Generaldual interface for IDispatch Pin
George_George14-Feb-08 22:28
George_George14-Feb-08 22:28 
GeneralRe: dual interface for IDispatch Pin
CPallini14-Feb-08 23:07
mveCPallini14-Feb-08 23:07 
GeneralRe: dual interface for IDispatch Pin
George_George14-Feb-08 23:18
George_George14-Feb-08 23:18 
GeneralRe: dual interface for IDispatch Pin
CPallini14-Feb-08 23:29
mveCPallini14-Feb-08 23:29 
GeneralRe: dual interface for IDispatch Pin
George_George14-Feb-08 23:52
George_George14-Feb-08 23:52 
GeneralRe: dual interface for IDispatch Pin
CPallini15-Feb-08 0:02
mveCPallini15-Feb-08 0:02 
GeneralRe: dual interface for IDispatch Pin
George_George15-Feb-08 0:05
George_George15-Feb-08 0:05 

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.