Hey does anyone know any way to convert VB .Net to VC++ .Net? I was thinking that it would be cool to develop games for VB .Net and convert to VC++ .Net for speed (esp. for the Pocket PC). For free? (Besides manually...)
Convert VB. Net to Visual C++ .Net?
Surely both VB.NET and VC++.NET compile down to the CLR (Common Language Runtime) and should execute at (close to) identical speeds? (Maybe I've missed something).
Huh... I didn't know that. So writing games in VB .net for PPC should run fast? That is what I am wondering. I am learning C++ and VB at the same time. You know? VB is a pretty easily language. I know it can get as complicated as any programming can (i.e. OOP). But writing anything in VB is faster and easier than its equivalent in VC++...
Actually, no, they'll both run slowly. So far as I know, VB.NET and VC++.NET are both compiled down to the CLR and then interpreted on the machine that's running it.
I've never done a comparison as my device isn't .NET capable, but I'd expect the (managed) .NET executables to be significantly slower than a "real" C++ executable.
I've never done a comparison as my device isn't .NET capable, but I'd expect the (managed) .NET executables to be significantly slower than a "real" C++ executable.
Shez. I didn't know that either. Since there is VB .Net, I guess the is almost no point of coding in VC++ .Net. So if I want to use C++, then what choice do I have for Pocket PC? Only eVC++? If so...what differences should I know about before heading into eVC++? I tried it out before and find out there is no IOSTREAM.H. Is that true? ...What a bummer...
as no one's said it already .... you really don't want to consider VB as a way forward for writing games. Just put in the time & effort to learn C++, honest, it's true, just believe me, learn C++ if you want to write games. The sooner you start the sooner you stop wasting time. There's nothing wrong with also getting into assembler but for the most part C++ is what you want.
Was that assembler suggestion refering to Pocket PC platform as well (in games)?
Is C# faster than VB .Net? How much faster? Is there anyway to convert VB .Net to C# non-manually?
C# and vb.net run at approximately the same speed as they both compile down to il. So does c++.net but that can't be run on the ppc so don't bother.
They are not interpreted on the ppc, they are jit compiled into native code. The jit compiler is not (yet) as good as the native c++ compiler so they run a bit more slowly than c++ code.
It should be should be possible to write quality games in vb.net/c# (plug: See my gapidraw.net and hekkus.net wrappers at www.intuitex.com)
Doing yet another breakout clone would be trival and perform well but I wouldn't use .net to write a 1st person shooter.
If you can wait a bit (or have msdn access), visual studio 2005 supports the arm processor. That is what I use for my c++ stuff.
Finally, if you do want to change code from one .net language to another, search for Reflector. It has a plugin that will convert a compiled assembly to any .net language (that is a very strong arguement against using .net though...).
They are not interpreted on the ppc, they are jit compiled into native code. The jit compiler is not (yet) as good as the native c++ compiler so they run a bit more slowly than c++ code.
It should be should be possible to write quality games in vb.net/c# (plug: See my gapidraw.net and hekkus.net wrappers at www.intuitex.com)
Doing yet another breakout clone would be trival and perform well but I wouldn't use .net to write a 1st person shooter.
If you can wait a bit (or have msdn access), visual studio 2005 supports the arm processor. That is what I use for my c++ stuff.
Finally, if you do want to change code from one .net language to another, search for Reflector. It has a plugin that will convert a compiled assembly to any .net language (that is a very strong arguement against using .net though...).
Visual Studio 2005 is out already for sale? What's the difference?
re: assembler yes I was refering to PocketPC. There seem to be quite a few people going that way for performance. As one who has written entire games in assembler I know it can be as easy to use as C so long as you document like mad but you have to make up all your own constructs as structs, classes etc exist in C++ but not assembler where there's none of the higher level niceties.
VGA wrote:Visual Studio 2005 is out already for sale? What's the difference?
No it is in beta. It is much improved (ie not crap), with .net 2, better c++, arm compiler etc
AAAHHHHHH!!! HEELLLPPP!! MY COMPUTER IS ATTACKING ME!!!! ARRRGGGHHHHHH!!!
as structs, classes etc exist in C++ but not assembler where there's none of the higher level niceties.
The ARM compiler with eVC++ has primitive support for structs - just look at "Storage Maps".
A made-up-on-the-spot example:
- Code:
^0
X #4
Y #4
color #2
foo #2
bar #4
whibble #4
Then in your code you can do:
- Code:
ldr r1,[r0,#whibble]
and it'll know that whibble is #16. I tend to just make up the storage maps to be identical to structures used in the C - it sure beats having to remember that "wobble" is at offset #48 or whatever (and of course changes are easy).
Is that assembly?? Is assembly easily to learn? Is assembly the same for all processers? Or not? And I think there is low level and high level assembly, right? What's the difference?
- Is that assembly??
- Is assembly easily to learn?
- Is assembly the same for all processers? Or not?
- And I think there is low level and high level assembly, right? What's the difference?
- The last line is - the "ldr".
- ARM assembler is "easy". However, it's typically only necessary for optimising certain parts of a game or whatever. Dan's post in <a href="http://www.pocketmatrix.com/forums/viewtopic.php?t=18345">this thread</a> sums it up fairly well, I think. I learnt ARM assembler because it happened to be the processor that my Acorn machine used (and 'cos, like I said, it's easy).
- No, but pocket PC processors are generally ARM cores these days. Desktop PCs, etc, have different assembly languages, of course. All ARM cores have the same basic instruction set, and you can ignore "extra" instructions, of course.
- Not really - unless you're counting somebody working out opcodes by hand and stuff for the "low level".