• Advertisement
Sign in to follow this  

VB6 to VB.net

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

If you intended to correct an error in the post then please contact us.

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 this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Dead_Zone
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)'.
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 think
v = 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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement