How can I create a Smartphone Home plug-in project for both WinCE 2003 and Win Mobile 5.0 ?

Hello,

Sample "Homescreen" project has only Win Mobile 5.0 setting, and I need a plug-in for WinCE 2003 as well.  If I build a plug-in under WM 5.0, can I use it for WinCE 2003 as well
If no, what kind of project should I create to support both OSs: DLL, static library, or something else   And what options and settings should be set

Thank you.


Answer this question

How can I create a Smartphone Home plug-in project for both WinCE 2003 and Win Mobile 5.0 ?

  • Michael007

    Hi,

    If you have the platform SDK (the platform that you want to add to project, here wince2003) installed on that machine, then do the following

    1. Open the homescreen solution
    2. Goto Menu Build->COnfiguration Manager
    3. On the Homescreen "project" row, select "platform" drop down
    4. Select "New" to add new platform, now you choose the SDK you want to add, and then select the copy settings from
    click on ok, it will add new platform

    However you may need to change the project properties manually to have specific defines and other settings in order to compile and link the project.

    Hope this helps,
    Thanks,
    Gangadhar

  • AlExtjAi

    Hi,

    I have a sample homescreen application from the smartphone sdk......

    I can able to build and install the cab.... i dont know how to test.....

    and some qurey what is homescreen plugins............

    please help me

    Regards

    vishal


  • MarcoB

    Thank you Gangadhar

    What you're sugesting is perfectly correct and that's what I did before sending my question to the forum.

     I have no problem building both versions of the plug-in, and installation of appropriate version to WM 5.0 works just fine. But wince 2003 version does not work. The plug-in just does not appear on the Home screen.

     I have writen a number of wince 2003 Home plug-ins using eVC 4.0 and prev. And I never had a single problem. Now, I just don't know what to do.

    The following is the command line for Smartphone 2003 (I copied it from project settings):

     /Od /Os /D "_WIN32_WCE=0x420" /D "UNDER_CE=0x420" /D "WINCE" /D "WIN32_PLATFORM_WFSP" /D "_DEBUG" /D "DEBUG" /D "_WINDOWS" /D "ARM" /D "_ARM_" /D "_UNICODE" /D "UNICODE" /D "_WINDLL" /Gm /EHsc /MTd /fp:fast /GR /Fo"Smartphone 2003 (ARMV4)\Debug/" /Fd"Smartphone 2003 (ARMV4)\Debug/vc80.pdb" /W3 /nologo /c /Zi /TP

    Could you point me to a sample Smartphone Home plug-in project which would support both OSs, please. If not - thank you any way for your answer.


  • Radu Margarint

    Gangadhar,

    You are right again.  When sending my question I did not expect to get explicit answer - what, where and why.

    I thought - may be someone somewhen came across this same problem.  This way I could save some time on debuging.  But It looks like I have to roll up my sleeves and sort it all out.  If you're interested, I'll let you know when I'm done.

    Thanks again


  • vlatiyan

     

    I don't know of any such example written supporting both OS, however in general the shipped example for homescreen should work fine. If it is not then what would help is little bit of debugging into the code and find out what APIs/use of class objects are returning failure, that may help to narrow down your problem.

    If you can narrow down the problem and post me what exact thing you need then I may be able to hlep you.

    Thanks,

    Gangadhar


  • How can I create a Smartphone Home plug-in project for both WinCE 2003 and Win Mobile 5.0 ?