Click here to Skip to main content
15,897,704 members
Home / Discussions / COM
   

COM

 
GeneralRe: An unhandled exception of type System.Runtime.InteropServices.COMException occurred Pin
User 21559718-Dec-07 0:22
User 21559718-Dec-07 0:22 
QuestionHow to automate Excel 2007 with C# 2003.... Pin
student49115-Dec-07 7:32
student49115-Dec-07 7:32 
QuestionCOM - Class doesn't support automation! Pin
peepsicola14-Dec-07 6:57
peepsicola14-Dec-07 6:57 
QuestionRe: COM - Class doesn't support automation! Pin
CPallini14-Dec-07 9:27
mveCPallini14-Dec-07 9:27 
GeneralRe: COM - Class doesn't support automation! Pin
peepsicola14-Dec-07 10:28
peepsicola14-Dec-07 10:28 
GeneralRe: COM - Class doesn't support automation! Pin
Mike Dimmick14-Dec-07 13:13
Mike Dimmick14-Dec-07 13:13 
GeneralRe: COM - Class doesn't support automation! Pin
peepsicola18-Dec-07 3:44
peepsicola18-Dec-07 3:44 
Generalextending shell with right-click menu items [modified] Pin
carabutnicolae123413-Dec-07 20:28
carabutnicolae123413-Dec-07 20:28 
hello, have some troubles getting some code working.
if you can have a look.

I have the code below, and it does insert only 2 menu items:
"Check Out" and "Delete File".
More than this at "::InvokeCommand(LPCMINVOKECOMMANDINFO pCmdInfo)"
how do I make the difference between what menu item was clicked ?


thanks

::QueryContextMenu( HMENU hmenu, UINT uMenuIndex, UINT uidFirstCmd,
                    UINT uidLastCmd, UINT uFlags )
{
const int size = 4;
const char* menuLabels[size] ={
                         "Check Out",
                         "Check In",
                         "Download",
                         "Delete File"
                         };

int menuItemPosition = uMenuIndex;
UINT menuItemID = uidFirstCmd;
for(int i=0; i<size; i++)
{
     MENUITEMINFO menuItemInfo;
     memset( &menuItemInfo, 0, sizeof(MENUITEMINFO) );
     menuItemInfo.cbSize = sizeof(MENUITEMINFO);
     //menuItemInfo.fMask=MIIM_DATA | MIIM_FTYPE | MIIM_ID | MIIM_STRING;
     menuItemInfo.fMask = MIIM_DATA | MIIM_TYPE | MIIM_ID;
     menuItemInfo.fType = MFT_STRING;
     menuItemInfo.wID = menuItemID++;
     menuItemInfo.dwItemData = menuItemID - 1;
     menuItemInfo.dwTypeData = (LPSTR)menuLabels[i];
     menuItemInfo.cch = strlen(menuLabels[i]);
					
     InsertMenuItem(	hmenu, menuItemPosition++, TRUE, &menuItemInfo );
}

modified on Friday, December 14, 2007 2:37:29 AM

QuestionIs it possible for an ActiveX control to access the DOM of the page? Pin
keniagm13-Dec-07 8:33
keniagm13-Dec-07 8:33 
GeneralRe: Is it possible for an ActiveX control to access the DOM of the page? Pin
vishalmore13-Dec-07 15:14
vishalmore13-Dec-07 15:14 
GeneralRe: Is it possible for an ActiveX control to access the DOM of the page? Pin
keniagm14-Dec-07 2:14
keniagm14-Dec-07 2:14 
GeneralWord page border. Pin
priyank_ldce12-Dec-07 4:03
priyank_ldce12-Dec-07 4:03 
GeneralLate binding from COM client Pin
sawerr12-Dec-07 1:35
sawerr12-Dec-07 1:35 
GeneralRe: Late binding from COM client Pin
CPallini12-Dec-07 9:27
mveCPallini12-Dec-07 9:27 
QuestionOutlook Add ins Pin
Jerome.Mariadoss12-Dec-07 1:19
Jerome.Mariadoss12-Dec-07 1:19 
GeneralRe: Outlook Add ins Pin
KarstenK12-Dec-07 2:51
mveKarstenK12-Dec-07 2:51 
GeneralIWebBrowser2 Behavior is Different from IE7 in Vista Pin
chunsj11-Dec-07 19:41
chunsj11-Dec-07 19:41 
QuestionNumber Problem...... Pin
Peter Parker11-Dec-07 3:44
Peter Parker11-Dec-07 3:44 
GeneralIntercept Send Mail in Outlook Pin
_AnsHUMAN_ 10-Dec-07 21:13
_AnsHUMAN_ 10-Dec-07 21:13 
GeneralRe: Intercept Send Mail in Outlook Pin
myshketer11-Dec-07 21:11
myshketer11-Dec-07 21:11 
QuestionSmart Tag Creation Pin
anufabian9-Dec-07 22:50
anufabian9-Dec-07 22:50 
GeneralSending string from COM to C# under Vista problem Pin
Stevo Z6-Dec-07 22:53
Stevo Z6-Dec-07 22:53 
QuestionRe: Sending string from COM to C# under Vista problem Pin
Nathan Holt at EMOM7-Dec-07 7:28
Nathan Holt at EMOM7-Dec-07 7:28 
GeneralRe: Sending string from COM to C# under Vista problem Pin
Mike Dimmick7-Dec-07 16:36
Mike Dimmick7-Dec-07 16:36 
GeneralRe: Sending string from COM to C# under Vista problem Pin
Stevo Z10-Dec-07 2:20
Stevo Z10-Dec-07 2:20 

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.