We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Help me:How to get a string from a constant array which located in BANKn?
//Located at BANK0 code char *pStrArray[] = { "1", "2", "34", }; //Located at BANK0 void LoadString(char *strbuf, const char *pString){ BYTE iBank; iBank = get_bank(); switchbank(RES_BANK); strcpy(strbuf, pString); switchbank(iBank); } //Located at BANK1 void GetString(char *strbuf, const char *pStr[], unsiged char i){ LoadString(strbuf, pStr[i]); } //the result is null string, why?