dilettante
MIS
As we know, there isn't any easy way to create a VB6 Class using methods and properties named the same as quite a few reserved words. Examples:
[tt]Open
Close
Write[/tt]
Of course by writing the appropriate ODL/IDL and making a typelib we can use Implements to provide class members with such names on an alternate interface for our Class.
But a tricky one is the pseudo-method [tt]Print[/tt] which the compiler handles as a special case. For this one even a typelib doesn't help by itself since the compiler processes the Print keyword in a very different way.
I had thought at one time I had found either an MS KB article or some "Tough Guy's VB" writeup (McKinney or somebody) that offered more details on what goes on under the covers. The upshot seemed to be that the special argument-list syntax was processed into a more digestable form and then some hidden actual method got called on some interface of the object (a Form, a PictureBox, a UserControl, the [tt]Debug[/tt] object, etc.).
Does anybody have this information anymore?
Even the name of the hidden method might help with searches. I'm coming up empty.
[tt]Open
Close
Write[/tt]
Of course by writing the appropriate ODL/IDL and making a typelib we can use Implements to provide class members with such names on an alternate interface for our Class.
But a tricky one is the pseudo-method [tt]Print[/tt] which the compiler handles as a special case. For this one even a typelib doesn't help by itself since the compiler processes the Print keyword in a very different way.
I had thought at one time I had found either an MS KB article or some "Tough Guy's VB" writeup (McKinney or somebody) that offered more details on what goes on under the covers. The upshot seemed to be that the special argument-list syntax was processed into a more digestable form and then some hidden actual method got called on some interface of the object (a Form, a PictureBox, a UserControl, the [tt]Debug[/tt] object, etc.).
Does anybody have this information anymore?
Even the name of the hidden method might help with searches. I'm coming up empty.