Quantcast
Channel: VBForums - COM and ActiveX
Viewing all articles
Browse latest Browse all 62

[RESOLVED] Accessing OCX Component wrapped within another ocx

$
0
0
this one is confusing me.

I have an editor component which is wrapped within an ocx. (scivb)
I have a debugger control which is wrapped in an ocx and uses the scivb editor (dukdbg)

Now I am embedding the the dukdbg debugger control in my host form.

I would like full access to the underlying scivb editor component. I know I cant share it directly by name unless they were both in the same ocx library (Can not share private object type as a public return type yada yada)

I should be able to share it as an generic object type though like

Code:

'dukdbg usercontrol
property get sci() as object
    set sci = scivb
end property

and then in the host form: (after adding a reference to the same scivb ocx)
Code:

dim sci as SciSimple
set sci = dukdbg.sci

I have tested this general mechanism with other activex controls (even vb created ones)
and it works.

but every time I try it with this one scivb editor control it fails with a type mismatch.

I have checked the vbp files to make sure the GUID and version are exactly the same..they are.

The best I seem to be able to do here is to just keep it as object and then use late bound calls which works...but I really want the intellisense :(

has anyone run into this screwy behavior before?

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>