All Forums
 Microsoft Windows CE
 eVC Application Development
 Finding SDK/Platform from within program
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

Patrick

34 Posts

Posted - 02 Mar 2004 :  13:18:02  Show Profile  Email Poster
Hi,
I'd like to have a single set of source for multiple platforms (Pocket PC 2003, Bitsy+).
Is there any way to read the platform, like IAGM, from within code? Is there a define to check?
I'd like to disable the Bitsy specific code, like reading keypad, when I'm on the Pocket PC.
Thanks,
-Patrick

ctacke

877 Posts

Posted - 02 Mar 2004 :  13:26:52  Show Profile  Email Poster
Something like this?


#if defined(WIN32_PLATFORM_HPC2000)
  // H/PC 2000
#elif defined(WIN32_PLATFORM_HPCPRO)
  // H/PC Pro
#elif defined(WIN32_PLATFORM_PSPC)
  // Pocket PC
  #if (WIN32_PLATFORM_PSPC == 1)
    // Pocket PC 2000
  #elif (WIN32_PLATFORM_PSPC == 310)
    // Pocket PC 2002
  #else
    // Pocket PC 2003
  #endif
#elif defined(WIN32_PLATFORM_WFSP)
  // Smartphone
#else
  // ADS Device
#endif
Go to Top of Page

Patrick

34 Posts

Posted - 02 Mar 2004 :  14:04:53  Show Profile  Email Poster
Yes, exactly! Works like a charm. Now to get my Pocket PC hardware buttons to simulate an ADS keypad!
Thank you, Chris!
-Patrick
Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000