|
-
November 28th, 1999, 05:18 PM
#1
Interfaces
I have an ActiveX Control project (CMSSecurity). It contains one UserControl (ICMSPassword) which Implements an ICMSPlugin interface. It includes all the properties/subs/functions from the ICMSPlugin interface, plus several of its own (which make up it's ICMSPlugin interface, right?).
In another application, I have an objPlugin variable of type ICMSPlugin, and an objPass variable of type ICMSPassword. objPlugin holds a reference to the ICMSPlugin interface on a dynamically created instance of the CMSSecurity.ICMSPassword control. Shouldn't I be able to do set objPass = objPlugin
to get a reference to that control's ICMSPassword interface? When I do this I get a Type Mismatch error.
In the project which references the ICMSPassword control, when I go to Project/Componants, it lists CMSSecurity on two lines. One refers to the .VBP and the other refers to the .OCX. Is this a sign that something's wrong or is this normal? I've tried checking both of them (not at the same time) and either way I get the Type Mismatch error. I've tried running RegClean but it didn't help.
-----
Lee Perkins
TigerBase Technologies
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|