Hello Everybody,
I have been developing components and always been using them through the CreateObject Method.
I know that there are other methods to use components as well and I am sure most of you might be aware of the Implements Keyword.
Well I wish to use that method for exposing a particular private function of a class.

Firstly do you know whether the Implements can be used in anything other than a class?
Secondly what is the exact syntax of using the implements keyword. I keep on getting it wrong.

Here is my problem in a bit more detail :-

My vbproject is registered as Something and the class is called SomeClass.

If I wish to expose the "Private Function CompareData Method" of this class, using the Implements Keyword how should I go about it.


Public Function calculateLCM(ByVal iInputOne As Long, _
iInputTwo As Long) As Double
calculateLCM = dLcmProduct
End Function

Private Function CompareData(ByVal collFactorsOne As Collection, _
ByVal collFactorsTwo As Collection _
) As Double
Dim xdResult As Double


CompareData = xdResult

End Function


I wish to expose the CompareData Method in my program exe. Since it is a private function, I know that it cannot be done by creating an instance of the object.


Regards,
Abhijit Shrikhande