<solved> Minor hiccup in VBNET Tutorial 7

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Pseudo
Posts: 5
Joined: Thu Jul 13, 2006 6:49 pm

<solved> Minor hiccup in VBNET Tutorial 7

Post by Pseudo »

(apologies if its simply that ive missed something simple)

just started using Irrlicht. being mainly a vb.net programmer (though some would dispute "vb.net" and "programmer" appearing in the same sentence :wink: ) im currently using the .net wrapper, everything was fine till i came up to tutorial 7 and the collision detection. Vb.net throws a wobbler at this line:

Code: Select all

line.end = line.start + (camera.Target - line.start).Normalize * 1000
complaining that "Operator '-' is not defined for types 'Irrlicht.Core.Vector3D' and 'Irrlicht.Core.Vector3D'." now <sarcasm> using my phenominal knowledge of vb.net </sarcasm> im guessing that mathmatical operators havent been defined for vectors in Irrlicht .net, if so does anyone have a workaround for this. (or am i simply missing something simple...)
Last edited by Pseudo on Sun Jul 16, 2006 2:41 pm, edited 1 time in total.
shurijo
Posts: 148
Joined: Sat Feb 21, 2004 3:04 am

Post by shurijo »

What version of VB.NET are you using?

VB.NET w/ .NET 1.0 (2002) and 1.1 (2003) didn't support operator overloading (so you could never implement something like class + class, etc.; you could with C#, but not VB.NET back then).

I think that you'll need to use VB.NET w/ 2.0 framework (VB.NET 2005). I tested it with VB.NET Express 2005 and tutorial 7 worked for me.

You can download VB.NET Express 2005 for free from msdn.microsoft.com.

I'm not certain this is the problem, and I haven't tested that exact tutorial on a previous .NET framework (1.1 or 1.0). But, it works for me with VB.NET Express 2005 (2.0 framework).

Oh, and VB.NET is a full/pure object oriented language that supports the OOL requirements (polymorphism, inheritance, abstraction, encaspulation). VB6 is a totally different language and different in many, many ways than VB.NET. So don't feel any lesser for using VB.NET - it is the same as C#, just without the semicolons and curly brackets :)
Pseudo
Posts: 5
Joined: Thu Jul 13, 2006 6:49 pm

Post by Pseudo »

ahhh that could be the problem then, im using vb.net 2003 methinks. now do i get the express edition or try to come up with a work around.... so many decisions so little time (caffeine)

PS thanks.

Edit: once i got vb.net 05 edition it worked (nearly) fine (sans the fact i forgot the media files *oops*), so looks like ill have to be using VS.net 05 now...
Post Reply