>What I want to do is set my version
>number in one place, and have it used here and in my about box. Any Ideas ?

You can grab the version # from the CodeWarrior setting and draw it 
using something like the following:

static void DrawVersionInfo
(
        void
)
{
        MemHandle       resH;
        Char *          resP;
        Char            line [ 15 ];

        StrCopy ( line, "Version " );
        resH = DmGetResource ( verRsc, 1000 );
        resP = MemHandleLock ( resH );
        StrCat ( line, resP );
        MemHandleUnlock ( resH );
        DmReleaseResource ( resH );
        WinDrawChars ( line, StrLen ( line ), ABOUT_VER_X_COORD, 
ABOUT_VER_Y_COORD );
}

Regards,
Steve Mann
-- 
-------------------------------------------
Creative Digital Publishing Inc.
1315 Palm Street, San Luis Obispo, CA 93401-3117
-------------------------------------------
805.784.9461              805.784.9462 (fax)
[EMAIL PROTECTED]       http://www.cdpubs.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to