#9685 - Cyrare - Wed Aug 13, 2003 9:49 pm
Hello,
I'm a beginner in the gba dev world, and I've tried a lot of tutorials, but I've seen that all the .h they used are differents (gba.h, screenmode.h, keypad.h ...)
It's difficult for newbies to find what use to do what...
Is the gba dev community have a favorite .h set to use ?
tks, bye
#9686 - Daikath - Wed Aug 13, 2003 10:03 pm
I can see that you are a beginner to the world of C programming as well. I suggest that you do boring DOS excersizes first, i know how boring they are but what they teach you you cannot do without.
_________________
?There are no stupid questions but there are a LOT of inquisitive idiots.?
#9687 - Cyrare - Wed Aug 13, 2003 10:10 pm
I've good skills in C/C++ and I can understand all the code that is in all the .h (mostly some define) given with the tutorials, but, where the iostream.h stdio.h math.h ... are common to ALL the C tutorials, the gba.h are differents in thepernprojet / downtoyou / gbajunkies / gbadev.
And it's just boring to adapt your code or your .h at each new line you add in you program... That's the reason why I ask if everybody use a different *.h set or if everybody have choosen the same...
#9688 - tepples - Wed Aug 13, 2003 11:16 pm
Different developers often use different .h files to describe the GBA chipset's memory-mapped registers. Some developers have some sort of paranoia that if they use widespread names, those names might actually be the official names and they'll get in trouble with Nintendo for stealing trade secrets; others just choose names that make more sense than the widespread names.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#9690 - yaustar - Thu Aug 14, 2003 12:25 am
If you are following an author's particular tutorial (eg pern/dovoto or gba junkie) then use the headers that they use/supply. This will help you get on with doing stuff.
After a while you start to understand what everything does and adapt to most minor changes from one header to another.
Also, Daikath is right, if you dont understand the basic C/C++ statements/syntax then you are asking for trouble.
_________________
[Blog] [Portfolio]
#9694 - Sweex - Thu Aug 14, 2003 9:22 am
I wrote my own headers containing GBA defines.
_________________
If everything fails, read the manual: If even that fails, post on forum!
#9713 - sgeos - Thu Aug 14, 2003 6:36 pm
Use whatever you need or whatever is easiest for you. For small GBA projects I don't use ".h files".
-Brendan