Click here to Skip to main content
15,916,019 members
Home / Discussions / COM
   

COM

 
QuestionHelp with ENTRYID type and ENTRYLIST type Pin
Chris Meech24-Jan-06 10:40
Chris Meech24-Jan-06 10:40 
QuestionRe: Help with ENTRYID type and ENTRYLIST type Pin
Chris Meech26-Jan-06 7:15
Chris Meech26-Jan-06 7:15 
QuestionCOM DLL with IShellPropSheetExt Pin
souso2024-Jan-06 4:00
souso2024-Jan-06 4:00 
Questionsend error message to vb from c++ com Pin
mack scynox24-Jan-06 3:07
mack scynox24-Jan-06 3:07 
AnswerRe: send error message to vb from c++ com Pin
Gizzo24-Jan-06 5:00
Gizzo24-Jan-06 5:00 
GeneralRe: send error message to vb from c++ com Pin
mack scynox24-Jan-06 20:55
mack scynox24-Jan-06 20:55 
Questionprinter shell extension Pin
eisbaer311223-Jan-06 22:53
eisbaer311223-Jan-06 22:53 
AnswerRe: printer shell extension Pin
eisbaer31122-Feb-06 4:27
eisbaer31122-Feb-06 4:27 
hi,

here is the IShellExtInit.Initialize to get the printername:

int IShellExtInit.Initialize(
IntPtr pidlFolder,
IntPtr lpdobj,
uint hKeyProgID)
{
try
{
uint CFSTR_PRINTERGROUP;
CFSTR_PRINTERGROUP =
DllImports.RegisterClipboardFormat("PrinterFriendlyName");

m_dataObject = null;
if (lpdobj != (IntPtr)0)
{
m_dataObject = (IDataObject)Marshal.GetObjectForIUnknown(lpdobj);
FORMATETC fmt = new FORMATETC();
fmt.cfFormat = CFSTR_PRINTERGROUP; fmt.ptd = 0;
fmt.dwAspect = DVASPECT.DVASPECT_CONTENT;
fmt.lindex = -1;
fmt.tymed = TYMED.TYMED_HGLOBAL;
STGMEDIUM medium = new STGMEDIUM();
m_dataObject.GetData(ref fmt, ref medium);

m_hDrop = medium.hGlobal;

uint nselected = DllImports.DragQueryFile(m_hDrop,
0xffffffff,
null,
0);

if (nselected == 1)
{
StringBuilder sb = new StringBuilder(1024);
DllImports.DragQueryFile(m_hDrop, 0, sb, sb.Capacity + 1);
string objectname = sb.ToString();
}
}
}
catch (Exception e)
{
sting err = e.ToString();
}
return 0;
}


eisbär
QuestionICopyHook Pin
ragavan23-Jan-06 3:00
ragavan23-Jan-06 3:00 
QuestionCOM client must recompile when server compiled? Pin
WernerP23-Jan-06 1:55
WernerP23-Jan-06 1:55 
Questionwhat is a interface? Pin
vikas amin22-Jan-06 19:28
vikas amin22-Jan-06 19:28 
AnswerRe: what is a interface? Pin
Stephen Hewitt22-Jan-06 22:35
Stephen Hewitt22-Jan-06 22:35 
AnswerRe: what is a interface? Pin
Danish jibbran29-Jan-06 1:37
Danish jibbran29-Jan-06 1:37 
Questionabout IMediaSeeking Pin
abstarsss22-Jan-06 17:57
abstarsss22-Jan-06 17:57 
QuestionAttempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
godspeed12322-Jan-06 7:39
godspeed12322-Jan-06 7:39 
AnswerRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Stephen Hewitt22-Jan-06 15:55
Stephen Hewitt22-Jan-06 15:55 
GeneralRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Vi224-Jan-06 4:21
Vi224-Jan-06 4:21 
Questionpass asp byte array to com object? Pin
mack scynox20-Jan-06 23:38
mack scynox20-Jan-06 23:38 
QuestionHow to export a class in c++ dll. Pin
srinu.m20-Jan-06 3:35
srinu.m20-Jan-06 3:35 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 14:53
Stephen Hewitt20-Jan-06 14:53 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 16:33
Stephen Hewitt20-Jan-06 16:33 
GeneralRe: How to export a class in c++ dll. Pin
srinu.m22-Jan-06 15:51
srinu.m22-Jan-06 15:51 
Questionanyboby can give the link for download Ebook of inside com Pin
baldha rakesh19-Jan-06 17:39
baldha rakesh19-Jan-06 17:39 
QuestionI need some info on active documents Pin
UsmanMKhan19-Jan-06 2:30
UsmanMKhan19-Jan-06 2:30 
QuestionAccessing file system in client with .net winform control used as Activex in page Pin
Daniel Santillanes18-Jan-06 13:28
professionalDaniel Santillanes18-Jan-06 13:28 

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.