Debug ATL control in Pocket PC 2003/2005

Hi,

I am kind new in developing ATL control for Pocket PC 2003/2005. I have been able to generate a .dll activeX control and I can deploy it in the device. My question is how can debug it throug Visual studio 2005. When I started debugging, a message "a non-executable project cannot be started directly. Please set a command to use to start debugging this project" pops up. Anybody have an idea about this

Do I need to write a program to host this control for debugging But, when I want to insert activeX control, there is no such control since it is installed in the Pocket PC.

I really appreciate any kind help.

Thanks.

Michael Zhou




Answer this question

Debug ATL control in Pocket PC 2003/2005

  • Gangs

    Moving this to the appropriate forum..
  • West

    Hi Michael,

    Your are right you need to host the control before you can start debugging the control, since a ocx/dll can't be run as such.

    As for the other issue, you are right again, since the control doesn't get registered on the desktop it won't appear in the list of controls. This is known issue.

    As a workaround you can

    • Either select one of the controls from the list and then change the GUID to that for your control.
    • Select cutom control from the toolbox and then change it into the settings for an activex control.

    You may need to modify the initalization data, if your control uses any.

    Thanks



  • Debug ATL control in Pocket PC 2003/2005