minigui CreateMainWindow Failed

3     g_hMainWnd = CreateMainWindow (&CreateInfo);                                                                      
254     printf("g_hMianWnd%0x, hwnd_invalid:%0x\n", g_hMainWnd, HWND_INVALID);
255     if (HWND_INVALID == g_hMainWnd)
256     {
257         printf ("Create Main Dlg Faile\n");
258         return -1;
259     }

运行minigui总是直接退出,在pc上没问题,

交叉编译后在板子上就直接退出。

 

问题是创建窗口时一个属性没有赋;

CreateInfo.hHosting = HWND_DESKTOP;

添上这行就没问题了

 

你可能感兴趣的:(minigui)