环境:T2.0+wml2.0.
问题:写了一个显示汉字的程序,但编译时系统提示initialization to `short unsigned int *' from `char *'
代码:
UGL_FONT_DRIVER_ID fontDrvId;
UGL_FONT_DEF fontDef;
UGL_FONT_ID fontBanner;
UGL_DEVICE_ID devId;
UGL_GC_ID gc;
if (uglInitialize() == UGL_STATUS_ERROR)
return;
uglDriverFind(UGL_DISPLAY_TYPE,0,(UGL_UINT32*)&devId);
uglDriverFind(UGL_FONT_ENGINE_TYPE, 0, (UGL_UINT32*)&fontDrvId);
gc = uglGcCreate(devId);
if(uglFontFindString(fontDrvId, "familyName=Song", &fontDef) == UGL_STATUS_ERROR)
printf("\nBanner's uglFontFindString failed.\n");
if ((fontBanner = uglFontCreate(fontDrvId, &fontDef)) == UGL_NULL)
{
printf("Font not found. Exiting.\n");
exit (1);
}
UGL_WCHAR *text = "山雨欲来风满楼\0";
uglColorAlloc (devId, &colorTable[BLACK].rgbColor, UGL_NULL,
&colorTable[BLACK].uglColor, 1);
uglColorAlloc(devId, &colorTable[BLUE].rgbColor, UGL_NULL,
&colorTable[BLUE].uglColor, 1);
uglColorAlloc(devId, &colorTable[YELLOW].rgbColor, UGL_NULL,
&colorTable[YELLOW].uglColor, 1);
uglColorAlloc(devId, &colorTable[WHITE].rgbColor, UGL_NULL,
&colorTable[WHITE].uglColor, 1);
uglBatchStart(gc);
uglBackgroundColorSet(gc, colorTable [YELLOW].uglColor);
uglForegroundColorSet(gc, colorTable [BLUE].uglColor);
uglLine(gc, 200,0,200,200);
uglRectangle(gc,50,50,149,79);
uglBatchEnd(gc);
uglFontSet(gc, fontBanner);
uglBatchStart(gc);
uglTextDrawW(gc, 350, 350, -1, text);
uglBatchEnd(gc);
printf("after textdraw!\n");
return;
请大侠们帮我看看,怎么修改呢?