Do I need VisualStudio.NET?

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.
Shaboom

Do I need VisualStudio.NET?

Post by Shaboom »

Hello.

I am planning to use C# for Irrlicht.

But the problem is that I only own Visual Studio 6.0 and I don't want to use C++ because I have a very hard time understanding that language.

I am currently using CodeBlocks for the IDE for the C# programming language, MinGW for the compiler.

Will Irrlicht work with this setup?
Electron
Posts: 874
Joined: Sun Mar 14, 2004 12:05 am
Location: Massachusetts USA

Post by Electron »

wait a minute. Since when does MinGW compile C#? that's something I didn't know. Unfortunately I believe Irrlicht.NET requires a .NET enabled language which AFAIK only MS tools provide, but I really know nothing about .NET (never used it at all) so I could easily be wrong
You do a lot of programming? Really? I try to get some in, but the debugging keeps me pretty busy.

Crucible of Stars
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I think the Mono Project is a free C# alternative:
http://www.mono-project.com/Main_Page

and you could use sharpdevelop, a free C sharp IDE (I think uses the .Net framework):
http://www.icsharpcode.net/OpenSource/SD/

it's a great C# ide with the look and feel of MS tools
Shaboom

Post by Shaboom »

Mono does Visualbasic too!

Lets see if Mono can run Irrlicht programs.
Shaboom

Post by Shaboom »

forget the previous post.

I was taking a look at sharpdevelop and... That required the VS.NET as well?
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

as far as I know it requires the MS .net 1.1 framework
Shaboom

Post by Shaboom »

Well as far as I know, I successfully imported a .NET project into SharpDevelop and successfully compiled it..

Now the part I am stuck on is, trying to run the program. It kinda says that the file is not found.

Now how do I actually set up SharpDevelop to make it run irrlicht programs??

I'm such a newbie here.
Dude passing by

Post by Dude passing by »

..Defining some words

.NET Framework = A bunch of system files that must be present on the machine to run .net program

.NET SDK = Tools to write .net programs. Includes C#, VB.net and Managed C++ compilers.

Sharp develop does not require VS.net but DOES require the .NET SDK because of the compilers. You can run Sharp develop with only the .NET framework installed, but you will need the .NET SDK if you want to actually compile anything.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

great! thnx for clarifying it.

I guess the MS plattform sdk is also required?
Shaboom

Post by Shaboom »

If anyone here uses SharpDevelop, can anyone give my instructions on how to get it set up with irrlicht so I can run programs with it?

Because simple, importing the sample program from D:\Irrlicht compiling(worked successfully), and then running didn't push it.
Shaboom

Post by Shaboom »

And heres the log:

Unhandled Exception: System.IO.FileNotFoundException: File or assembly name Irrl
icht.NET, or one of its dependencies, was not found.
File name: "Irrlicht.NET"
at _01.HelloWorld_vb_7._0.Module1.Main()

=== Pre-bind state information ===
LOG: DisplayName = Irrlicht.NET, Version=0.1.1913.22482, Culture=neutral, Public
KeyToken=null
(Fully-specified)
LOG: Appbase = C:\Documents and Settings\DynamiteSoul.BEN2\My Documents\SharpDev
elop Projects\01.HelloWorld_vb_7.0\
LOG: Initial PrivatePath = NULL
Calling assembly : 01.HelloWorld_vb_7.0, Version=1.0.1965.30147, Culture=neutral
, PublicKeyToken=null.
===

LOG: Application configuration file does not exist.
LOG: Policy not being applied to reference at this time (private, custom, partia
l, or location-based assembly bind).
LOG: Post-policy reference: Irrlicht.NET, Version=0.1.1913.22482, Culture=neutra
l, PublicKeyToken=null
LOG: Attempting download of new URL file:///C:/Documents and Settings/DynamiteSo
ul.BEN2/My Documents/SharpDevelop Projects/01.HelloWorld_vb_7.0/Irrlicht.NET.DLL
.

Press any key to continue . . .

Yes the DLL is in the project file but I still get this error message.
Shaboom

Post by Shaboom »

well... I assume that none of you guys use sharpdevelop with this engine.
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

I don't use C#
Shaboom

Post by Shaboom »

Well it doesn't have to be in C#.

Anyone try making it work with VB.NET or even C++??

I am either stuck or very stupid on this.
CrimsonShadow

Running from SharpDevelop

Post by CrimsonShadow »

I got the Helloworld.NET example to work in SharpDevelop by just making a new combine (blank application), copying in the example.cs file and adding a reference to the Irrlicht.NET.dll assembly.

I think the first time I tried to run it I got the same error as you so I copied the Irrlicht.dll file into the same directory as the executable that was created. (ie. You should have 2 .dll files in this directory. Irrlicht.dll and Irrlicht.NET.dll)

After I did that it started up but couldn't find the media files so I had to copy them over but it worked after I did that.

Hope that helps,
-CrimsonShadow

PS: If anyone knows how to get text working with the .NET API I'd appreciate a pointer or two. I can't seem to figure out what the equivalent to IGUIStaticText is for the .NET API... maybe it hasn't been ported yet?
Post Reply