VB.Net Related Project Issues

GregH

06-12-2005 10:17:13

I am new to OGRE but even so I see a lot of promise and scope. I have also spent several days (not wanting to bother you folk) in trying to set up a simple VB.Net 2003 project without success. I thought it was my fault at first, but after reading AlbertS's message about creating the DotNet Wrapper (Tortoise & Swig!!) I realise that I could never have guessed my way through the compilation process. In fact I nearly gave up.

And now to the sticking point - no matter which DLL's I reference (downloaded pre-built or home compiled) I cannot access the correct namespaces via Imports in my VB.Net project. The Wiki (I'll figure out what that means one day) says to reference OgreDotNet.dll, OgreDotNet.CeguiRenderer.dll and CeguiNet.dll.

The 7 dll's that I now have available (and don't include some above) are:

CeguiBindings.dll
CeguiDotNet.dll
Math3D.dll
OgreBindings.dll
OgreBindings_Cegui.dll
OgreDotNet.Cegui.dll
OgreDotNet.dll

...and when I import the 3 stated refs I do not get the Ogre namespace...and where is OgreDotNet.CeguiRenderer.dll ??

I was hoping that OGRE would be more user-friendly than raw DirectX, but I'm having a cow of a time getting to an empty launch pad. Can someone please shed some light - once I get past these issues, I will contribute lots. Perhaps you could zip a ready-2-go empty VB.Net project?

Kind regards, Greg.

EagleEye

06-12-2005 17:30:07

For those who are lost, VB.NET has the keyword "Imports" instead of "Using"...

Like:
Imports System.IO
instead of
using System.IO;

Greg, to answer your questions...

The most common problem people seem to have is that they don't put all of the compiled ODN dlls in the same folder as the Ogre SDK dlls. The ODN dlls reference the SDK dlls transparently.

As far as adding references to your project... in the solution explorer you should have CeguiDotNet, Math3D, OgreDotNet, and OgreDotNet.Cegui.

I would go back to the ODN solution and ensure that all are compiling properly... of course, you have the DLLs, so they likely are.

The imports statements you should have are:

Imports CeguiDotNet
Imports OgreDotNet
Imports OgreDotNet.Cegui
Imports Math3D

The Ogre namespace is accessed with the OgreDotNet namespace... we were going to rename the namespace to just "Ogre", but that would have been confusing for people. You access the Ogre namespace via the OgreDotNet namespace.

GregH

06-12-2005 21:04:58

Hi EagleEye,

Though I appreciate all that you have said, all I really needed was to know the correct Imports statements...which are entirely different to the ones listed under the heading "Using the OgreDotNet Wrapper in your project". Also two out of the 3 dlls to be referenced have different names given under that heading.

I'm not complaining, but everyone's time is very precious and a quick fix of the text on that page would save much repetitive support...

Thanks heaps for your assistance - I can't wait to try out OGRE !!

Kindest regards,

Greg H.

EagleEye

06-12-2005 21:10:00

If the wiki page is out of date or incorrect, feel free to correct it. That's the whole point of the wiki. :)

GregH

07-12-2005 00:42:05

Hi EagleEye,

OGRE is running now, thanks to your assistance. Once I have figured out how to fix the wiki text in this regard, I will do so...I imagine there's some instructions for updating pages somewhere.

Kindest regards,

Greg H.

EagleEye

07-12-2005 06:07:15

Hi EagleEye,

OGRE is running now, thanks to your assistance. Once I have figured out how to fix the wiki text in this regard, I will do so...I imagine there's some instructions for updating pages somewhere.

Kindest regards,

Greg H.


Sign up an account on the main ogre forums... that username and password is what you use to log in to the wiki site. Once you sign in there you can edit any page. This is the nature of any wiki page. :)