Help with Key Generation / user input with easyce (please)

Hi everyone, I'm just about tearing my hair out....
For my current game I'd like to have an input box pop up allowing the user to enter the registration code, if they have one, otherwise they can hit "demo", and continue to play the demo version....
I've managed to look at easyce, and workout that the input should most likly go before the GXOpenDisplay function etc.... and the App goes full screen....
so what I wanted to call before that is some code that allows a user to input 2, 5 digit alpha-numeric numbers (one 10 digit code).... check it etc... now I have not (dare I say it) ever written an code related to keyboard input or combo boxes in c++, I've looked at the basic messagebox() API, but I'm stuffed if I can work out how to get the 2, 5 digit numbers from the user, some help would be really really helpful!
assumeing I have 2 char* vars key1 and key2,
could someone give me an outline for a function that gets the 2 keys from the user! returns a 1 for keys ok... or 0 for not etc.... I'm sure I'd be fine with the "checking, writing them out etc", as for the input.....
e.g
int register_keys()
-thanks, I know to some of you this is not a difficult task....
and please dont start on the returning 1 on being a bad thing for decoding warez wise.... yes I know....

For my current game I'd like to have an input box pop up allowing the user to enter the registration code, if they have one, otherwise they can hit "demo", and continue to play the demo version....
I've managed to look at easyce, and workout that the input should most likly go before the GXOpenDisplay function etc.... and the App goes full screen....
so what I wanted to call before that is some code that allows a user to input 2, 5 digit alpha-numeric numbers (one 10 digit code).... check it etc... now I have not (dare I say it) ever written an code related to keyboard input or combo boxes in c++, I've looked at the basic messagebox() API, but I'm stuffed if I can work out how to get the 2, 5 digit numbers from the user, some help would be really really helpful!
assumeing I have 2 char* vars key1 and key2,
could someone give me an outline for a function that gets the 2 keys from the user! returns a 1 for keys ok... or 0 for not etc.... I'm sure I'd be fine with the "checking, writing them out etc", as for the input.....
e.g
int register_keys()
-thanks, I know to some of you this is not a difficult task....
and please dont start on the returning 1 on being a bad thing for decoding warez wise.... yes I know....
