Re: debugging?



On 13 Oct 2006 01:07:22 -0700, "Warren" <warren@xxxxxxxxxxxx> wrote:

Hi All

I am sure this is a stupid question, but I cannot seem to figure it
out.

I have MS's eMbedded Visual C++ and the Standard_SDK installed. I am
using an iPaq 6915. I can compile a program and run it on the Emulator.
Changing the CPU and manually copying the file to the ipaq, it will
also run. But I need to debug the program on the ipaq, and this is
where I am struggling.

In Platform Manager I can add a device under 'Windows CE Default
Platform' and select active sync. The test is OK. But how do I till
vc++ to use this device. The 'Set Default device' does not show this
new device, it only shows the options that are added under STANDARDSDK
in the Platform manager, and they do not seem to offer active sync
options.

How do I select an active sync device? Am I on the wrong track
altogether?

The eVC IDE is very fussy about mismatches between target platform and
actual platform. In this case, you specified a "Standard" device as
the target, but the actual device is running WM 5 for Pocket PC (I
used Google to find this info). You can generally debug directly only
when you install and use the SDK that goes with the actual device.

Unfortunately, no SDK that works with eVC supports WM 5. So if you
really want to debug directly, you will need to switch to Visual
Studio and the SDK for WM 5 for Pocket PC. And you will need to switch
to one of the Visual Studio versions that costs money.

With a little effort, you can stick with eVC. I infer from your use of
the STANDARD_SDK that you are using eVC 4 (eVC 3 has no such SDK). So
you should get and install the Pocket PC 2003 SDK. You can then do
much of your development and testing using the Pocket PC 2003
emulator. But you need to know that the emulator is not a very good
mimic (even for Pocket PC 2003 devices), so you should absolutely not
rely on it. If you sprinkle ASSERTs liberally through your code, they
will trap errors when you run on your iPAQ. With a bit of patience,
you can add enough ASSERTs to spot relevant source code quickly. When
an ASSERT does trigger, you can add MessageBoxes to narrow down the
list of suspect source lines. Such debugging can be tedious,
especially with new code. But it is possible.

The "standard" SDK is rarely useful.



Help will be very appreciated.

Warren

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.



Relevant Pages

  • Re: Newbie question: program runs in emulator but not on device
    ... The first thing I would like to do is to use eVC to build a bare ... Thank you for telling us the platform on your hardware. ... SDK to SDK, so I end up being able to build for all CPUs each SDK ... Next to that is a drop down that specifies the platform. ...
    (microsoft.public.windowsce.app.development)
  • Re: Cannot open include file "winres.h"
    ... The fact that your platform does not appear, if that's what you are saying, ... for eVC to match the configuration of the OS used on the device, ... The platform was built before the SDK was. ... >> Did you install eVC and the SDKs in the default folders suggested by the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: have a pocket pc 2003 app. how to convert to windows mobile?
    ... Note that there is no SDK for "Windows Mobile 6". ... HPC, through Pocket PC, Smartphone, and Pocket PC Phone Edition to the ... provided one SDK for each platform. ...
    (microsoft.public.pocketpc.developer)
  • Re: Some questions; SHMenuBar, multilingual prog
    ... >>> applications that run on a Pocket PC 2003, but you will not be able to ... It worked under eVB, but not eVC. ... When I try to start EVC, it says something like "SDK not ... >>Emulator showed a 1024x768 environment, the OS looked like a handheld ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: "Platform manager cannot create the communication streams needed by the debugger" error
    ... >I can successfully build my app, ... described a work-around for a known problem with eVC 4. ... >I'm using Active Sync version 3.8, and the target Pocket PC is running ... original Pocket PC platform. ...
    (microsoft.public.windowsce.embedded.vc)

Loading