>> // get all possible screen depths >> if(rom_version >= OSVersion35) >> WinScreenMode(winScreenModeGetSupportedDepths, NULL, NULL, >> &scr_depth, NULL); >> else >> ScrDisplayMode(scrDisplayModeGetSupportedDepths, NULL, NULL, >> &scr_depth, NULL); >> >> Without the the ScrDisplayMode() function it works, but with it I >> get this: > > #define ScrDisplayMode WinScreenMode > #define scrDisplayModeGetSupportedDepths > winScreenModeGetSupportedDepths > > thats what they are really.. now do you see what you need to do? > > WinScreenMode(winScreenModeGetSupportedDepths, NULL, NULL, > &scr_depth, NULL); > > will work on 3.0+
I've hit this same problem. What do I do if I want to be compatible with OS 2.0+? That's where the real issue comes into play for me. The WinScreenMode function isn't available there. But ScrDisplayMode isn't available at compile time because I'm building with a more modern SDK. When I first hit this problem, I guessed I'd have to figure out a way to point the compiler at two different SDKs. When it couldn't resolve the reference to ScrDisplayMode from the OS5 SDK, it would then follow its include and library paths to a later entry and find it in the OS2 SDK. But I haven't really done that yet to see if it works. Rick Reynolds -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
