Click here to Skip to main content
15,887,446 members
Home / Discussions / COM
   

COM

 
GeneralVisual C++ Excel Addin causes Excel to crash Pin
ssaddi25-Feb-08 18:24
ssaddi25-Feb-08 18:24 
GeneralRe: Visual C++ Excel Addin causes Excel to crash Pin
Ernest Laurentin5-Mar-08 7:19
Ernest Laurentin5-Mar-08 7:19 
GeneralUsing C# managed DLL in C++ unmanaged code Pin
dany_ch20-Feb-08 23:26
dany_ch20-Feb-08 23:26 
AnswerRe: Using C# managed DLL in C++ unmanaged code Pin
ritz12344-Mar-08 23:10
ritz12344-Mar-08 23:10 
QuestionTrouble with using COM in Window Service Pin
kamal.chauhan18-Feb-08 21:14
kamal.chauhan18-Feb-08 21:14 
GeneralRe: Trouble with using COM in Window Service Pin
Garth J Lancaster18-Feb-08 21:45
professionalGarth J Lancaster18-Feb-08 21:45 
GeneralRe: Trouble with using COM in Window Service Pin
kamal.chauhan18-Feb-08 22:25
kamal.chauhan18-Feb-08 22:25 
QuestionHow to get Recycle Bin Files/folders name Pin
john563213-Feb-08 2:29
john563213-Feb-08 2:29 
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->AddRef();<br />
<br />
	   STGMEDIUM medium;<br />
	   FORMATETC fe = { CF_HDROP, NULL, DVASPECT_CONTENT, -1, TYMED_HGLOBAL};<br />
<br />
<br />
	   HRESULT hr = pdtobj->GetData (&fe, &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>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<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(&medium);<br />
   }<br />
<br />
  <br />
}<br />


Thanx in advance.:
GeneralExcel.WorksheetFunction.RTD - Did anyone know how to retrieve data programmatically from rtd server with callback function Pin
bangbangbigolo11-Feb-08 10:07
bangbangbigolo11-Feb-08 10:07 
GeneralReleasing Interface Pin
john56328-Feb-08 0:42
john56328-Feb-08 0:42 
GeneralRe: Releasing Interface Pin
CPallini8-Feb-08 4:41
mveCPallini8-Feb-08 4:41 
GeneralPlease need some help - Multiple Interface - activex control Pin
sv147-Feb-08 22:29
sv147-Feb-08 22:29 
GeneralProblem inregistring Com Class. Pin
Royaltvk7-Feb-08 20:08
Royaltvk7-Feb-08 20:08 
GeneralRe: Problem inregistring Com Class. Pin
User 2155978-Feb-08 0:48
User 2155978-Feb-08 0:48 
GeneralRe: Problem inregistring Com Class. Pin
Royaltvk18-Feb-08 18:23
Royaltvk18-Feb-08 18:23 
QuestionCoCreateInstance failing Pin
KellyR7-Feb-08 9:26
KellyR7-Feb-08 9:26 
GeneralRe: CoCreateInstance failing Pin
Royaltvk7-Feb-08 19:02
Royaltvk7-Feb-08 19:02 
QuestionRe: CoCreateInstance failing Pin
CPallini7-Feb-08 23:09
mveCPallini7-Feb-08 23:09 
GeneralRe: CoCreateInstance failing Pin
KellyR8-Feb-08 4:00
KellyR8-Feb-08 4:00 
GeneralRe: CoCreateInstance failing Pin
CPallini11-Feb-08 21:36
mveCPallini11-Feb-08 21:36 
QuestionRe: CoCreateInstance failing Pin
KellyR14-Feb-08 12:01
KellyR14-Feb-08 12:01 
GeneralRe: CoCreateInstance failing Pin
john56328-Feb-08 0:44
john56328-Feb-08 0:44 
GeneralRe: CoCreateInstance failing Pin
KellyR8-Feb-08 4:02
KellyR8-Feb-08 4:02 
GeneralRe: CoCreateInstance failing Pin
QuickDeveloper11-Feb-08 22:24
QuickDeveloper11-Feb-08 22:24 
QuestionRaise VB6 event from C# dll Pin
MayyMagdy6-Feb-08 11:40
MayyMagdy6-Feb-08 11:40 

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.