> > Sadly DLL is Microsoft specific. It's a good idea though, > but would be > tricky to be portable. > > It's not specific. MacOS, Linux, BeOS supports dynamic libraries. (DLL = dynamic > libraries) so it would be portable.
No they don't. Each has their own version. e.g. Linux has shared libraries (.ao files I think). Microsoft Win32 has DLL (.dll)
It wouldn't be portable. If if was don't you think we would have done it a LONG time ago? Basically you'd have to write a wrapper for each platform...
> > The way to do this is: > > CreateWindow(...,WS_VISIBLE,0,0,240,320,NULL,NULL,wc.hInstance,NULL); > > Don't ask me why! Seems to me a bad idea to do 240,320 hardcoded, but seems to > > be the only way... > > This is wrong: You must write (see gapi manual) > > #define MENU_HEIGHT 26 > HWND g_hWnd; // Window APP > RECT rc; > SHFullScreen(g_hWnd, SHFS_HIDESTARTICON | SHFS_HIDETASKBAR | > SHFS_HIDESIPBUTTON); > GetWindowRect(g_hWnd, &rc); > MoveWindow(m_hWnd, rc.left, rc.top-MENU_HEIGHT, rc.right, rc.bottom MENU_HEIGHT, > TRUE); > GXOpenDisplay(g_hWnd, GX_FULLSCREEN);
Thanks for the tip! Where's the GAPI manual by the way - I couldn't see one, only examples?
*update* - are you sure about SHFullScreen? I searched for it at MSDN and strangely even though it appears in other articles it's not in MSDN itself? Seems weird...
|