Re: Working with other languages



Robin ha scritto:
I was recently in a forum discussion about recreating an old game.
It would be a group effort as no one has the time / experience to do it on their own. The ever present question arose, which language?

There was a C++ guy pushing like it was the only choice, a few VB folk, myself and another Delphi user, and a few C# users.

So we had a bit of a mixed bag.

I suggest that you use dotNET and WinForms.

Why?

Very simple:

- You can use whatever language(Delphi, C++, VB.NET, C#, IronPython
even) you want.
- DirectX has a managed layer and there are *tons* of samples using
WinForms
- Assemblies can be shared across IDEs/languages so that would be
*much* easier to form a group effort.
- You can have the "shell" being in Delphi W32 and loading the
dotNET assemblies externally(use the "Library" project which
comes in Delphi.NET)

Another selling point is that dotNET2.0 can load/use 1.1
assemblies and the other way around.

The downsides of this approach are the usual:

- Don't expect the game to work on W9x
- dotNET client side can be *extremely* slow if you don't do
things properly(and, sometimes, even if you *do* things
properly... <g>)
- Keep in mind that you'll have to code maths in C++ or Delphi
native and use that, otherwise you're going to be in big
trouble as the math needed isn't just add and sub :D

If the trade-off is reasonable for you(and I suppose it is,
after all I strongly doubt we're talking of a commercial
product here) then you can start coding :D

Cheers,

Andrew
.


Quantcast