|
|
View previous topic :: View next topic |
Author |
Message |
gladkih_ua Guest
|
Question on const char arrays - please help!!! |
Posted: Fri Feb 19, 2010 1:53 pm |
|
|
hello.
what i don't right do
Code: |
CONST char TEXT_KSW[]="ÊÑÂ";
CONST char TEXT_POWER[]="ÌÎÙÍÎÑÒÜ";
CONST char TEXT_P_KONTUR[]="Ï-ÊÎÍÒÓÐ";
CONST char TEXT_NAPR_ANNOD[]="ÍÀÏÐ.ÀÍÎÄÀ";
CONST char TEXT_TOK_ANNOD[]="ÒÎÊ.ÀÍÎÄÀ";
CONST char TEXT_NAPR_SETKA[]="ÍÀÏÐ.ÑÅÒÊÈ";
CONST char TEXT_TOK_SETKA[]="ÒÎÊ.ÑÅÒÊÈ";
CONST char* INDICACIJA_VIVOD[7]={TEXT_KSW, TEXT_POWER, TEXT_P_KONTUR, TEXT_NAPR_ANNOD, TEXT_TOK_ANNOD, TEXT_NAPR_SETKA, TEXT_TOK_SETKA};
|
i use 4.104
when i used 4.082 all work. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Feb 20, 2010 4:39 pm |
|
|
Quote: | when I used 4.082 all work. |
Post a short (but compilable) test program that shows it working in
vs. 4.082. The program should use a printf() statement to display
the strings. Make sure that you post the #include, #fuses, #use delay(),
and #use rs232() statements. |
|
|
Gavin Pinto
Joined: 18 Oct 2009 Posts: 27 Location: Australia
|
Re: Question on const char arrays - please help!!! |
Posted: Sun Feb 21, 2010 6:05 pm |
|
|
gladkih_ua wrote: | hello.
what i don't right do
Code: |
CONST char TEXT_KSW[]="ÊÑÂ";
CONST char TEXT_POWER[]="ÌÎÙÍÎÑÒÜ";
CONST char TEXT_P_KONTUR[]="Ï-ÊÎÍÒÓÐ";
CONST char TEXT_NAPR_ANNOD[]="ÍÀÏÐ.ÀÍÎÄÀ";
CONST char TEXT_TOK_ANNOD[]="ÒÎÊ.ÀÍÎÄÀ";
CONST char TEXT_NAPR_SETKA[]="ÍÀÏÐ.ÑÅÒÊÈ";
CONST char TEXT_TOK_SETKA[]="ÒÎÊ.ÑÅÒÊÈ";
CONST char* INDICACIJA_VIVOD[7]={TEXT_KSW, TEXT_POWER, TEXT_P_KONTUR, TEXT_NAPR_ANNOD, TEXT_TOK_ANNOD, TEXT_NAPR_SETKA, TEXT_TOK_SETKA};
|
i use 4.104
when i used 4.082 all work. |
Try this
rom char TEXT_KSW[]="ÊÑÂ";
rom char TEXT_POWER[]="ÌÎÙÍÎÑÒÜ";
rom char TEXT_P_KONTUR[]="Ï-ÊÎÍÒÓÐ";
rom char TEXT_NAPR_ANNOD[]="ÍÀÏÐ.ÀÍÎÄÀ";
rom char TEXT_TOK_ANNOD[]="ÒÎÊ.ÀÍÎÄÀ";
rom char TEXT_NAPR_SETKA[]="ÍÀÏÐ.ÑÅÒÊÈ";
rom char TEXT_TOK_SETKA[]="ÒÎÊ.ÑÅÒÊÈ";
rom char INDICACIJA_VIVOD[7][]={TEXT_KSW, TEXT_POWER, TEXT_P_KONTUR, TEXT_NAPR_ANNOD, TEXT_TOK_ANNOD, TEXT_NAPR_SETKA, TEXT_TOK_SETKA};
Then look at .sym file. For a PIC18F8722 I see this in the .sym file
User Memory space:
01FFF6-01FFF9 TEXT_KSW
01FFEC-01FFF4 TEXT_POWER
01FFE2-01FFEA TEXT_P_KONTUR
01FFD6-01FFE0 TEXT_NAPR_ANNOD
01FFCC-01FFD5 TEXT_TOK_ANNOD
01FFC0-01FFCA TEXT_NAPR_SETKA
01FFB6-01FFBF TEXT_TOK_SETKA
01FFAE-01FFB4 INDICACIJA_VIVOD _________________ Clear Logic |
|
|
Guest
|
Re: Question on const char arrays - please help!!! |
Posted: Tue Feb 23, 2010 2:47 am |
|
|
THANKS. I TRY. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|