|
void mmi_myapp_entry(void)
{
EntryNewScreen(SCR_ID_MYAPP,mmi_myapp_exit, NULL, NULL);
entry_full_screen();
clear_screen();
stFontAttribute f = {0};
f.size = LARGE_FONT;
gui_move_text_cursor(50,100);
gui_set_text_color(UI_COLOR_RED); /* 字体颜色*/
gui_set_font(f);
gui_print_text((UI_string_type)GetString(STR_ID_MYAPP));
gui_BLT_double_buffer(0,0,UI_device_width - 1,UI_device_height - 1);
SetKeyHandler(GoBackHistory, KEY_RSK, KEY_EVENT_UP);
}
模拟器报错:
MyApp.c
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(74) : error C2275: 'stFontAttribute' : illegal use of this type as an expression
e:\mtk6225\plutommi\mmi\miscframework\miscframeworkinc\pixcomfontengine.h(152) : see declaration of 'stFontAttribute'
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(74) : error C2146: syntax error : missing ';' before identifier 'f'
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(74) : error C2065: 'f' : undeclared identifier
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(74) : error C2059: syntax error : '{'
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(75) : error C2224: left of '.size' must have struct/union type
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(78) : warning C4047: 'function' : 'struct stFontAttribute *' differs in levels of indirection from 'int '
E:\MTK6225\plutommi\mmi\MyApp\MyAppSrc\MyApp.c(78) : warning C4024: 'gui_set_font' : different types for formal and actual parameter 1
Error executing cl.exe.
PC_Simulator.exe - 5 error(s), 2 warning(s) |
|