本文整理匯總了C++中ComAscStr2Uni函數的典型用法代碼示例。如果您正苦於以下問題:C++ ComAscStr2Uni函數的具體用法?C++ ComAscStr2Uni怎麽用?C++ ComAscStr2Uni使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了ComAscStr2Uni函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: game_state_callback
static PRESULT game_state_callback(POBJECT_HEAD obj, VEVENT event, UINT32 param1, UINT32 param2)
{
unsigned char ascstr[6];
PRESULT ret = PROC_PASS;
switch (event)
{
case EVN_PRE_DRAW:
switch (obj->bID)
{
case 31:
sprintf(ascstr, "%d", level);
break;
case 32:
sprintf(ascstr, "%d", score1);
break;
case 33:
sprintf(ascstr, "%d", score2);
break;
}
ComAscStr2Uni(ascstr, str_value);
if((get_game_id()==3)&&obj->bID!=31)
{
sprintf(ascstr,"%s"," ");
ComAscStr2Uni(ascstr, str_value);
}
OSD_SetTextFieldStrPoint((PTEXT_FIELD)obj, str_value);
}
return ret;
}
示例2: win_youtube_opts_ytu_string
void win_youtube_opts_ytu_string(UINT8 input)
{
UINT8 temp[40];
if(input==YTU_TODAY)
{
sprintf(temp, "Today");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTU_THIS_WEEK)
{
sprintf(temp, "This Week");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTU_THIS_MONTH)
{
sprintf(temp, "This Month");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTU_ALL_TIME)
{
sprintf(temp, "All Time");
ComAscStr2Uni(temp, display_strs[56]);
}
}
示例3: sys_backup_item_sel_callback
static PRESULT sys_backup_item_sel_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
UINT8 bID;
UINT16 sel, *Uni_str;
UINT32 block_len;
char str_buf[20] = {0};
PRESULT ret = PROC_PASS;
bID = OSD_GetObjID(pObj);
switch(event)
{
case EVN_REQUEST_STRING:
sel = param1;
Uni_str= (UINT16*)param2; // NOTICE: Uni_str size is 32 (#define MAX_STR_LEN 32) in obj_multisel.c
if(bID == BACKUP_MODE_ID)
{
memcpy(str_buf, usb_backup_type_name[sel], STRLEN(usb_backup_type_name[sel]));
ComAscStr2Uni(str_buf, Uni_str);
}
else
{
ComAscStr2Uni("", Uni_str);
}
break;
default:
break;
}
return ret;
}
示例4: win_tplist_set_sat_display
static void win_tplist_set_sat_display(void)
{
TEXT_FIELD* txt;
S_NODE s_node;
SYSTEM_DATA* sys_data;
sys_data = sys_data_get();
UINT16 name[3*MAX_SERVICE_NAME_LENGTH];
name[0] = 0;
txt = &tplst_sat;
get_tuner_sat(TUNER_EITHER, cur_tp_sat_idx, &s_node);
if(sys_data->antenna_connect_type == ANTENNA_CONNECT_DUAL_DIFF)
{
if(s_node.tuner1_valid)
ComAscStr2Uni("[LNB1] ", name);
else
ComAscStr2Uni("[LNB2] ", name);
ComUniStrCat(name, (UINT16 *)s_node.sat_name);
}
else
{
ComAscStr2Uni("[LNB1] ", name);
ComUniStrCat(name, (UINT16 *)s_node.sat_name);
}
OSD_SetTextFieldContent(txt, STRING_UNICODE, (UINT32)name);
}
示例5: win_youtube_opts_yto_string
void win_youtube_opts_yto_string(UINT8 input)
{
UINT8 temp[40];
if(input==YTO_RELEVANCE)
{
sprintf(temp, "Relevance");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTO_PUBLISHED)
{
sprintf(temp, "Published");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTO_VIEW_COUNT)
{
sprintf(temp, "View count");
ComAscStr2Uni(temp, display_strs[56]);
}
else if(input==YTO_RATING)
{
sprintf(temp, "Rating");
ComAscStr2Uni(temp, display_strs[56]);
}
}
示例6: newcamd_display_info1
static void newcamd_display_info1(BOOL update)
{
TEXT_CONTENT* tcont;
char strTemp[50];
UINT8 idx = g_newcamd_curidx-1;
UINT32 ip = newcamd_serinfo[idx].ip;
if(newcamd_serinfo[idx].bActive)
{
tcont = &str_info1[0];
tcont->text.pString = display_strs[31];
//sprintf(strTemp,"Server %d [%s]",g_newcamd_curidx,newcamd_serinfo[idx].name);
sprintf(strTemp,"Server %d",g_newcamd_curidx);
ComAscStr2Uni(strTemp,tcont->text.pString);
tcont = &str_info1[1];
tcont->text.pString = display_strs[32];
// sprintf(strTemp,"Server IP[%d.%d.%d.%d] Server Port[%d]",\
// ip&0xff,(ip>>8)&0xff,(ip>>16)&0xff,(ip>>24)&0xff, newcamd_serinfo[idx].port); //pppppppppp
sprintf(strTemp,"%s",newcamd_serinfo[idx].domain);
ComAscStr2Uni(strTemp,tcont->text.pString);
tcont = &str_info1[2];
tcont->text.pString = display_strs[33];
sprintf(strTemp,"User Name[******] User Password[******]");
ComAscStr2Uni(strTemp,tcont->text.pString);
}
else
{
tcont = &str_info1[0];
tcont->text.pString = display_strs[31];
//sprintf(strTemp,"Server %d [%s] Inactival",g_newcamd_curidx,newcamd_serinfo[idx].name);
sprintf(strTemp,"Server %d Inactival",g_newcamd_curidx);
ComAscStr2Uni(strTemp,tcont->text.pString);
tcont = &str_info1[1];
tcont->text.pString=0;
tcont = &str_info1[2];
tcont->text.pString=0;
}
if(update)
{
OSD_DrawObject((POBJECT_HEAD)&newcamd_item_info1, C_UPDATE_ALL);
}
}
示例7: win_pvr_setting_record_ps_set_string
void win_pvr_setting_record_ps_set_string(UINT8 input)
{
UINT8 temp[10];
sprintf(temp, "%s", (input ? "ON" : "OFF"));
ComAscStr2Uni(temp, display_strs[7]);
}
示例8: win_pvr_setting_rec_num_set_string
void win_pvr_setting_rec_num_set_string(UINT8 input)
{
UINT8 temp[10];
sprintf(temp, "%d", input);
ComAscStr2Uni(temp, display_strs[6]);
}
示例9: win_pvr_setting_ttx_subt_set_string
void win_pvr_setting_ttx_subt_set_string(BOOL input)
{
UINT8 temp[10];
sprintf(temp, "%s", (input ? "YES" : "NO"));
ComAscStr2Uni(temp, display_strs[5]);
}
示例10: win_pvr_setting_jumpstep_set_string
void win_pvr_setting_jumpstep_set_string(UINT8 input)
{
UINT8 temp[10];
switch(input)
{
case 0:
sprintf(temp, "30 sec", input);
break;
case 1:
sprintf(temp, "1 min", input);
break;
case 2:
sprintf(temp, "5 min", input);
break;
case 3:
sprintf(temp, "10 min", input);
break;
case 4:
sprintf(temp, "30 min", input);
break;
default:
break;
}
ComAscStr2Uni(temp, display_strs[1]);
}
示例11: win_checkdisk_set_string
void win_checkdisk_set_string(BOOL input)
{
UINT8 temp[10];
sprintf(temp, "%s", (input ? "ON" : "OFF"));
ComAscStr2Uni(temp, display_strs[0]);
}
示例12: win_pvod_msg_update
static void win_pvod_msg_update(UINT8 * str)
{
UINT32 i,j;
OSD_RECT rect;
ComAscStr2Uni(str, display_strs[10+pvod_msg_line%PVOD_MSG_MAX_LINE]);
for(i=0; i<PVOD_MSG_MAX_LINE; i++)
{
if(pvod_msg_line<PVOD_MSG_MAX_LINE)
j = i%PVOD_MSG_MAX_LINE;
else
j = (pvod_msg_line+1+i)%PVOD_MSG_MAX_LINE;
pvod_msg_buf[i] = display_strs[10+j];
}
//draw msg infos
for(i=0; i<PVOD_MSG_MAX_LINE; i++)
{
rect.uLeft = MSG_L;
rect.uTop = MSG_T+(MSG_H+MSG_GAP)*i;
rect.uWidth = MSG_W;
rect.uHeight= MSG_H;
OSD_SetRect2(&pvod_txt_msg.head.frame, &rect);
OSD_SetTextFieldContent(&pvod_txt_msg, STRING_UNICODE, (UINT32)pvod_msg_buf[i]);
OSD_DrawObject( (POBJECT_HEAD)&pvod_txt_msg, C_UPDATE_ALL);
}
pvod_msg_line++;;
}
示例13: comlist_volumelist_callback
PRESULT comlist_volumelist_callback(POBJECT_HEAD pObj, VEVENT event, UINT32 param1, UINT32 param2)
{
PRESULT cbRet = PROC_PASS;
UINT16 i,wTop;
OBJLIST* ol;
UINT16 unistr[50];
char str[50];
ol = (OBJLIST*)pObj;
wTop = OSD_GetObjListTop(ol);
if (event == EVN_PRE_DRAW)
{
for (i = 0; i< ol->wDep && (i+wTop) < ol->wCount; i++)
{
storage_index_to_osd_string(i+wTop,str);
ComAscStr2Uni(str,unistr);
win_comlist_set_str(i+wTop, NULL, unistr, 0);
}
}
else if(event == EVN_POST_CHANGE)
cbRet = PROC_LEAVE;
return cbRet;
}
示例14: win_disk_info_set_string
static void win_disk_info_set_string(UINT8 type, UINT8 input)
{
UINT8 temp[32];
switch(type)
{
case OPERATE_TYPE_PART_FORMAT:
win_disk_mode_get_str(input, temp);
break;
case OPERATE_TYPE_DVR_SET:
win_dvr_type_get_str(input, temp);
break;
case OPERATE_TYPE_PART_COPY:
win_partition_get_str(input, temp);
break;
#ifdef DISK_MANAGER_SUPPORT
case OPERATE_TYPE_DISK_REMOVE:
win_removable_disk_get_show_str(input, temp);
break;
#endif
default:
break;
}
ComAscStr2Uni(temp, display_strs[1]);
}
示例15: newcamd_redraw_dt
static void newcamd_redraw_dt(BOOL update)
{
date_time dt;
char stringTemp[50];
UINT16 *unistr=NULL;
UINT16 unistr_dest[50]={0};
UINT16 uni_string[300]={0};
get_local_time(&dt);
memset(unistr_dest,0,sizeof(unistr_dest));
memset(uni_string,0,sizeof(uni_string));
memset(stringTemp,0,sizeof(stringTemp));
unistr = OSD_GetUnicodeString(RS_TIME);
sprintf(stringTemp," %02d:%02d",dt.hour,dt.min);
ComAscStr2Uni(stringTemp,unistr_dest);
ComUniStrCopyChar(&uni_string,(UINT16 *)unistr);
ComUniStrCat(&uni_string,unistr_dest);
OSD_SetTextFieldContent(&newcamd_txt_time, STRING_UNICODE,uni_string);
if(update)
{
OSD_DrawObject((POBJECT_HEAD)&newcamd_txt_time,C_DRAW_SIGN_EVN_FLG |C_UPDATE_ALL);
}
}