Page 1 of 1

How to put user information

Posted: Mon Jul 11, 2011 5:14 pm
by OdnetninI
hi,
I'm trying to put the user ds information in the screen whith text, but I try and try and nothing
How i can do it?
this is the code i use but doesn't work

Code: Select all

//Informacion del sistema
		tPERSONAL_DATA *USERDATA;
		iprintf("Tema escogido en la ds:%d\nDia de cumple:%d\nMes del cumple:%d\nNombre:%s",USERDATA->theme,USERDATA->birthDay,USERDATA->birthMonth,USERDATA->name);
I recive error, when i compile

Re: How to put user information

Posted: Mon Jul 11, 2011 5:31 pm
by elhobbs
I think you may be looking for PersonalData from "nds\system.h" it is a pointer to a PERSONAL_DATA struct. so I think you should use it in place of USERDATA which does not appear to be initialized - at least in the code you provided.

error codes are usually helpfull in these situations - or more complete source code.

Re: How to put user information

Posted: Mon Jul 11, 2011 6:16 pm
by OdnetninI
the error:
the unuusable variables: I know i will use then

Re: How to put user information

Posted: Mon Jul 11, 2011 6:56 pm
by zeromus
quit wasting your time and post your source code. i think you havent #included the file elhobbs mentioned.

Re: How to put user information

Posted: Mon Jul 11, 2011 8:02 pm
by elhobbs
tPERSONAL_DATA is a struct name not a type. so you would need to use:

Code: Select all

struct tPERSONAL_DATA *USERDATA;
PERSONAL_DATA is a type definition for struct tPERSONAL_DATA. so you could use it like this:

Code: Select all

PERSONAL_DATA *USERDATA;
or you could use the already defined "PersonalData" which is declared at a fixed harware address.

Re: How to put user information

Posted: Mon Jul 11, 2011 9:43 pm
by OdnetninI
thanks, but I have and other question
I used the combined template arm7+arm9 because i want use wifi, load external homebrews, sound,etc..,but I use filesystem(nitrofiles),but I don't know how put it in makefile to compile.
Whith only arm9 I put perfectly, but whith two, no. I want choose text and icon, but i can't qhith combined.