Click here to Skip to main content
16,004,919 members
Home / Discussions / COM
   

COM

 
GeneralDistributed Transaction Error Pin
janlala5-Jun-05 0:10
janlala5-Jun-05 0:10 
QuestionIDispacth, ADORecordset and properties loss?!? Pin
almc3-Jun-05 0:53
almc3-Jun-05 0:53 
General Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck1-Jun-05 23:13
Florian Storck1-Jun-05 23:13 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
lemur21-Jun-05 23:25
lemur21-Jun-05 23:25 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck1-Jun-05 23:34
Florian Storck1-Jun-05 23:34 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck2-Jun-05 0:12
Florian Storck2-Jun-05 0:12 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
lemur22-Jun-05 21:58
lemur22-Jun-05 21:58 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck2-Jun-05 23:34
Florian Storck2-Jun-05 23:34 
Hi Kev,

well, I suppose you're getting to the core there. All interfaces are implemented as dual, automation. It was a former MFC Control, which has been added ATL support. The control itself exposes their standard dispatch interfaces.

The basic definition is somehow like this:

  [ object, 
  uuid(), 
  version(1.0),
  dual,
  oleautomation, 
  pointer_default(unique)
]
interface IMyIF: IDispatch
{

   [id(0x00020001)] HRESULT fn1();
};

      [ uuid(),
	dispinterface _DCTL
	{
        properties:
       

		methods:                                                                     
	  
      [id(101),]  [unique] IMyIF* GetMyIF();
      [id(102), propget]   IMyIF* ActiveMyIF();
     
    };


	[ uuid(),     
          control 
    ]
	coclass CTL
	{
                [default] dispinterface _DCTL;
		[default, source] dispinterface _DCTLEvents;
	};


All objects to be exposed are maintained internally in the control, an the
coclass definition of IMyIF is noncreatable. So all I do is, returning the IDispatch reference pointer to an existing instance within the control via the GetMyIF() function or property. The funny thing is, that I downloaded the ActiveX control pad from Microsoft today, which shows me the methods implemented by IMyIF when clicking the propget method ActiveMyIF, but it's not working either.

I suppose, somehow only access to the direct implemented Dispatch methods of the control is possible. But I think there must be some way, to generate objects based on the other exposed IDispatch references. At least, IDispatch should be working, because it's runtime callable. Weird,weird.

Thanks again for your suggestions,
Florian
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Jörgen Sigvardsson17-Jun-05 22:06
Jörgen Sigvardsson17-Jun-05 22:06 
GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck19-Jun-05 21:03
Florian Storck19-Jun-05 21:03 
GeneralLocking Display Of ActiveX Control Pin
AntonioKeh31-May-05 14:47
AntonioKeh31-May-05 14:47 
GeneralAxShockwaveFlashObjects.AxShockwaveFlash Flashvars Pin
davidhart31-May-05 3:59
davidhart31-May-05 3:59 
QuestionHow to write IE toolbar without ATL (on win32API)? Pin
Anonymous30-May-05 9:53
Anonymous30-May-05 9:53 
AnswerRe: How to write IE toolbar without ATL (on win32API)? Pin
Andy Moore6-Jun-05 8:03
Andy Moore6-Jun-05 8:03 
General"No such interface supported" returned from CoCreateInstance on successful IClassFactory->CreateInstance Pin
T-Wilson28-May-05 4:26
T-Wilson28-May-05 4:26 
GeneralMS Excel COM Interface description Pin
rantotiaray27-May-05 4:06
rantotiaray27-May-05 4:06 
GeneralVariants Pin
ursus zeta28-May-05 8:18
ursus zeta28-May-05 8:18 
GeneralRe: MS Excel COM Interface description Pin
Veera Raghavendra17-Jun-05 19:35
Veera Raghavendra17-Jun-05 19:35 
GeneralWMI and COM Pin
macakd24-May-05 12:54
macakd24-May-05 12:54 
GeneralRe: WMI and COM Pin
Member 19404227-Jun-05 3:55
Member 19404227-Jun-05 3:55 
GeneralProbably dumb question: passing IUnknown** to VB/MCPP/C# Pin
Florian Storck18-May-05 3:34
Florian Storck18-May-05 3:34 
GeneralRe: Probably dumb question: passing IUnknown** to VB/MCPP/C# Pin
hanofee27-May-05 4:28
hanofee27-May-05 4:28 
GeneralRe: Probably dumb question: passing IUnknown** to VB/MCPP/C# Pin
Florian Storck27-May-05 4:43
Florian Storck27-May-05 4:43 
GeneralRe: Probably dumb question: passing IUnknown** to VB/MCPP/C# Pin
Florian Storck1-Jun-05 23:06
Florian Storck1-Jun-05 23:06 
GeneralOk. The dumbest 2 questions Pin
CherezZaboro16-May-05 4:53
CherezZaboro16-May-05 4:53 

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.