|
楼主 |
发表于 2010-5-7 13:06:59
|
显示全部楼层
头文件不能打开时什么原因啊????
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) |
|