Welcome! Log In Create A New Profile

Advanced

Just a slight Cpp Question

Posted by Legend28469 
Just a slight Cpp Question
January 08, 2009 11:09PM
How different is it coding for the Wii... if your coding experience (C++) is in Windows.... does it get harder..?

I know the libraries are different.. but other than that..
Re: Just a slight Cpp Question
January 08, 2009 11:19PM
None. The C++ language is the same, there's no syntax differences.
Re: Just a slight Cpp Question
January 08, 2009 11:27PM
Quote
whodares
None. The C++ language is the same, there's no syntax differences.
Devil's advocate:
int x = 0xed;
char y = *((char *) &x);
printf("%hhx\n", y);



Edited 1 time(s). Last edit at 01/08/2009 11:27PM by comex.
Re: Just a slight Cpp Question
January 08, 2009 11:31PM
Quote
comex
Quote
whodares
None. The C++ language is the same, there's no syntax differences.
Devil's advocate:
int x = 0xed;
char y = *((char *) &x);
printf("%hhx\n", y);

Uhh....

xyzzy:~ $ gcc -arch i386 -o test test.c
xyzzy:~ $ ./test
ed
xyzzy:~ $ gcc -arch ppc -o test test.c
xyzzy:~ $ ./test
0

Endian difference, not language difference?
Re: Just a slight Cpp Question
January 08, 2009 11:32PM
Quote
comex
Devil's advocate:
int x = 0xed;
char y = *((char *) &x);
printf("%hhx\n", y);
I stand corrected. :-)



Edited 1 time(s). Last edit at 01/08/2009 11:33PM by whodares.
Re: Just a slight Cpp Question
January 09, 2009 12:00AM
Not really that much different. I'd say my main skills are windows api programming. I made a game sometime back for Windows that I'm porting to the Wii. Well it should now work on Win,Linux and Wii (maybe Mac). I just had to port the graphics part as I used Windows GDI to SDL. I found that the SDL libs for Wii are vastly outdated but still usable with a few work-a-rounds.

If your a decent Windows programmer then it should be no problem working with the Wii libs. One of my weak areas is make files so if you don't understand these just copy one of the example projects that comes with devkit and edit it.
Re: Just a slight Cpp Question
January 09, 2009 03:30AM
OK>... THANKS TO ALL OF YOU
Sorry, only registered users may post in this forum.

Click here to login