How to put user information

Post Reply
OdnetninI
Posts: 19
Joined: Sat Nov 20, 2010 12:38 pm

How to put user information

Post by OdnetninI » Mon Jul 11, 2011 5:14 pm

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

elhobbs
Posts: 354
Joined: Thu Jul 02, 2009 1:19 pm

Re: How to put user information

Post by elhobbs » Mon Jul 11, 2011 5:31 pm

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.

OdnetninI
Posts: 19
Joined: Sat Nov 20, 2010 12:38 pm

Re: How to put user information

Post by OdnetninI » Mon Jul 11, 2011 6:16 pm

the error:
the unuusable variables: I know i will use then
Attachments
errorer2.png
error
(53.77 KiB) Not downloaded yet

zeromus
Posts: 212
Joined: Wed Mar 31, 2010 6:05 pm

Re: How to put user information

Post by zeromus » Mon Jul 11, 2011 6:56 pm

quit wasting your time and post your source code. i think you havent #included the file elhobbs mentioned.

elhobbs
Posts: 354
Joined: Thu Jul 02, 2009 1:19 pm

Re: How to put user information

Post by elhobbs » Mon Jul 11, 2011 8:02 pm

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.

OdnetninI
Posts: 19
Joined: Sat Nov 20, 2010 12:38 pm

Re: How to put user information

Post by OdnetninI » Mon Jul 11, 2011 9:43 pm

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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests