Click here to Skip to main content
15,901,035 members
Home / Discussions / COM
   

COM

 
GeneralRe: Get Control ID from ActiveX button Pin
MailtoGops22-Aug-05 0:25
MailtoGops22-Aug-05 0:25 
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 
Hi Florian,

I'm not too sure if I'm fully understanding your problem - it looked at first glance as if it was the same problem as mine.

To anyone else reading, if I put my foot in it, please correct me - in no way do I claim to be a COM wizard. Just been around the block a couple of times, learning as I go... Dead | X|

Basically, if you access a COM component or control using a scripting language, you're limited to whatever functionality is available on the default interface of the component which must be an IDispatch-based interface. Calls are made simply by the scripting host mapping the method or property name (string) onto an id (int) and passing this id along with parameter information to the IDispatch::Invoke method.

If your control implements only custom (IUnknown-based) interfaces, you won't be able to access its functionality from a scripting language.

If an MFC wizard was used, you'll almost certainly have at least part of your component exposed via a dual interface. If you've added any further secondary interfaces though, these won't be accessible to the scripting language.

Can you give me a bit more detail about your component - maybe attach an IDL file or even the coclass definition from the IDL file?

Kev

GeneralRe: Acessing ActiveX Component Interfaces/ Library not registered Pin
Florian Storck2-Jun-05 23:34
Florian Storck2-Jun-05 23:34 
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 

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.