Hi All
VB 6.0
I am a c# developer usually but have had to create a vb 6 application to test a COM object.
The problem I have is that I get the following error when I run the code below :
Sub or Function not define
It can't find CType. I don't get it. Is Ctype in some surreal location?Code:Dim objClass As New clsAPI Dim objInterface As IAPI objInterface = CType(objClass, IAPI)
I suppose VB 6 can't do this at all.



Reply With Quote
