# VB6 to VB.net

This topic is 4236 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

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

##### Share on other sites
Quote:
 Original post by Dead_Zonehello i am having problems wit multiple instances of theseDim 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)'.
It 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]

' I thinkv = R3D_Interface5D.Complex_GetSize()'... should be:R3D_Interface5D.Complex_GetSize(ByRef v)

Quote:
 also thislocInterface5D.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.

• 39
• 15
• 9
• 23
• 10