CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Question on const char arrays - please help!!!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
gladkih_ua
Guest







Question on const char arrays - please help!!!
PostPosted: Fri Feb 19, 2010 1:53 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sat Feb 20, 2010 4:39 pm     Reply with quote

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

View user's profile Send private message

Re: Question on const char arrays - please help!!!
PostPosted: Sun Feb 21, 2010 6:05 pm     Reply with quote

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!!!
PostPosted: Tue Feb 23, 2010 2:47 am     Reply with quote

THANKS. I TRY.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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