LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems in using iDispatch.

I'm using activeX component in my app by dispatch interface
But I want use to idispatch interface.
So, If you don't mind send to me an example(iDispatch interface)
0 Kudos
Message 1 of 4
(3,422 Views)
Hi,

Are you using the CVI "Create ActiveX Server"? this wizard allows you to create a IDispatch interface. Once you have created the server with the wizard go to tools>>Edit ActiveX Server... there go to "Edit Interfaces..." Add a new interface and select the type to be "Dispinterface" this will create the IDispatch interface.

If you are not using the wizar it may be a good idea to follow this procedure and look at the code generate by the wizard; it will generate calls to the low level ActiveX calls; you can use that as a reference on how the interface is defined.

Remember that CVI can call SDK functions, you can look up in the web some example that are not specific to CVI and perform the same SDK calls in CVI.

Let me know if you have further questions
on this.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 2 of 4
(3,422 Views)
Hi.

I'm using "ActiveX Control Wizard".
My component is graph contorl component(www.iocomp.com).
And it has two interface(Dispatch, iDispatch).
But, When I create .fp by "ActiveX Controller Wizard".
Wizard is maked dispatch interface.
But I want iDispatch interface.
How...
Answer me.

Regards
0 Kudos
Message 3 of 4
(3,422 Views)
Hi,

If I'm not mistaken CVI will use the iDispatch interface to query the ActiveX server for the exported objects, properties and methods.

How do you tell that CVI is using the dispatch interface and not the iDispatch? Are you missing any methods or properties?

Let me know how this goeas.

Juan Carlos
0 Kudos
Message 4 of 4
(3,422 Views)