VB6 to VB.net
hello i am having problems wit multiple instances of these
Dim v As R3D_Declares.R3DVector2D
v = R3D_Interface5D.Complex_GetSize()
Error: Error 21 Argument not specified for parameter 'p' of 'Public Shared Sub Complex_GetSize(ByRef p As R3D_Declares.R3DVector2D)'.
i've tried correcting it but im pretty new to vb and .net so can anyone shed light?
also this
locInterface5D.Complex_SetPosition(locHelper.R3DVector2D(.mx, .my_Renamed))
Error: Error 22 'R3DVector2D' is a type in 'Zoids__REV3D_.Revolution3D091.R3D_Helper' and cannot be used as an expression.
thanks for anyones help
Quote:Original post by Dead_ZoneIt looks like the Complex_GetSize() method doesn't return anything, but it modifies the thing you pass to it. Look up the ByRef keyword in the help files. [smile]
hello i am having problems wit multiple instances of these
Dim v As R3D_Declares.R3DVector2D
v = R3D_Interface5D.Complex_GetSize()
Error: Error 21 Argument not specified for parameter 'p' of 'Public Shared Sub Complex_GetSize(ByRef p As R3D_Declares.R3DVector2D)'.
' I thinkv = R3D_Interface5D.Complex_GetSize()'... should be:R3D_Interface5D.Complex_GetSize(ByRef v)
Quote:also this
locInterface5D.Complex_SetPosition(locHelper.R3DVector2D(.mx, .my_Renamed))
Error: Error 22 'R3DVector2D' is a type in 'Zoids__REV3D_.Revolution3D091.R3D_Helper' and cannot be used as an expression.
I can't really tell without more information, but I'm guessing locHelper.R3DVector2D is a type with a constructor. You could try putting in the New keyword, like this...
locInterface5D.Complex_SetPosition(New locHelper.R3DVector2D(.mx, .my_Renamed))
Not sure if that's of any use, but could be worth a shot.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement