Re: How to determine if an app is running on the Simulator?

2004-04-26 Thread Ken Krugler
Does anyone know a way to determine programmatically whether or not an app is running on the Simulator? I'd like to know this so I can avoid calling SysGlueTrapExists() when running on the Simulator. (Calling SysGlueTrapExists() on the Simulator causes a debugger break.) By "the Simulator" I assu

RE: How to determine if an app is running on the Simulator?

2004-04-21 Thread Hays, Jonathan \(GE Infrastructure\)
Forum Subject: Re: How to determine if an app is running on the Simulator? Well, I think I found my answer: Get the processor ID and if it's an Intel x86, I'm on the Simulator. Here's the code snippet: UInt32 idProcessor=0x; Err err = FtrGet(sysFtrCreator, sysFt

Re: How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
Well, I think I found my answer: Get the processor ID and if it's an Intel x86, I'm on the Simulator. Here's the code snippet: UInt32 idProcessor=0x; Err err = FtrGet(sysFtrCreator, sysFtrNumProcessorID, &idProcessor); if ((idProcessor & sysFtrNumProcessorMask) == sysFtrN

Re: How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
I can *partially* answer my own question. Some Simulators (Garmin's and at least some of the non-device-specific ones from PalmSource) return a Company ID of 'psys' and a Device ID of ''. But the T3 Simulator returns exactly what the T3 returns, so this isn't a complete solution. Emilio Emil

How to determine if an app is running on the Simulator?

2004-04-21 Thread Emilio Millan
Does anyone know a way to determine programmatically whether or not an app is running on the Simulator? I'd like to know this so I can avoid calling SysGlueTrapExists() when running on the Simulator. (Calling SysGlueTrapExists() on the Simulator causes a debugger break.) Emilio -- For informatio