CF Today Screen example

Hey guys,

I have tried to get the following to work;

http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/todayscrn.asp

But there seems to be files missing...

Could someone point me in the direction of a quick start on building Today Screens...

Thanks

Keni




Answer this question

CF Today Screen example

  • m0nkeyforce

    Hi Ilya Tumanov,

    I am trying to add Today Screen item with C#. I am very thankful if u can guide me.

    EVC is not responding when I am trying to open
    TodayScreenSupport_UnManaged.vcw workspace.

    Even I tried to through VS 2005. Then I got this error.
    The project file 'CL\Program Files\.NET Compact Framework Samples\Today Screen\Code\Support\TodayScreenDataMgr\TodayScreenDataMgr.vcp has been corrupted and cannot be opened
    I removed, downloaded and installed again. but the same error.

    I hope you can help me in this matter.

    Thanking You,


  • Jamie Thomson

    As far as I now this sample is complete and been implemented by many successfully. Which file you believe is missing Perhaps that’s the native DLL which you have to compile with eVC



  • airwalker2000

    Hi all! I would like to find a way in which to make Today screen items in Visual Basic.

    The web is stuffed with ways to do it in C but i don't know C, The main problem is: I can't find a translation of the C function "InitializeCustomItem", which is:

    HWND APIENTRY InitializeCustomItem (

    TODAYLISTITEM *ptli,

    HWND hwndParent

    );

    Thanks,


  • Richard Wilson

    I get the exact same error (TodayScreenSupportCab.vcproj). On my machine eVC 3.0, eVC 4.0 and VS2003.NET are installed (but not VS2005).
  • SrinivasanN

    My Visual Studio About dialog says:

    Microsoft Visual C# .NET   69462-335-0000007-*****

    Is there a way to build the example without adding VC++ to Visual Studio

     

    Thanks.


  • estyles

    Have you tried compiling your native bits with VS 2005 (instead of eVc)


  • baswegan2

    I’ve verified sample is complete and 100% functional. Here's what I've done:

    1. Compiled native bits with VS 2005 (since I've no eVC installed), tweaked project to reflect output path changes.

    2. Tweaked TodayScreenSupport.inf file so path to native bits would be correct.

    3. Opened TodayScreenSupport_Managed.sln with VS 2003 and rebuild entire solution (release as article suggests), got TodayScreenSupport.msi which installs bits to device via AS and TodayScreenWizard.msi which installs VS 2003 plug in. Installed both…

    4. Created new VS 2003 project using custom Today Screen item, rebuild.

    5. Build CAB.

    6. Installed CAB.

    7. Updated Today via control paned.

    8. Have big “.NET CF Today Screen” message on my device.

    If for some reason you can not build CABs with native bits (and MSI as you need CABs to build it), you can do it manually:

    1. Navigate to C:\Program Files\.NET Compact Framework Samples\Today Screen\Code\Support\TodayScreenSupport_Managed\TodayScreenSupportCab\

    2. Execute: cabwiz.exe TodayScreenSupport.inf /cpu arm x86

    Note: provide path to cabwiz.exe if needed.

    3. Copy CAB to device and click on it.

    4. Proceed with custom plug in project.

    Here’s my log file from building TodayScreenSupport_Managed.sln:

    ------ Rebuild All started: Project: TodayScreenData, Configuration: Release Pocket PC ------

    Preparing resources...

    Updating references...

    Performing main compilation...

    Build complete -- 0 errors, 0 warnings

    Building satellite assemblies...

    Visual Studio is ready to deploy TodayScreenData

    ------ Rebuild All started: Project: TodayScreenHost, Configuration: Release Pocket PC ------

    Preparing resources...

    Updating references...

    Performing main compilation...

    Build complete -- 0 errors, 0 warnings

    Building satellite assemblies...

    Visual Studio is ready to deploy TodayScreenHost

    ------ Rebuild All started: Project: TodayScreenWizardInstallLib, Configuration: Release .NET ------

    Preparing resources...

    Updating references...

    Performing main compilation...

    Build complete -- 0 errors, 0 warnings

    Building satellite assemblies...

    ------ Rebuild All started: Project: TodayScreenSupportInstallLib, Configuration: Release .NET ------

    Preparing resources...

    Updating references...

    Performing main compilation...

    Build complete -- 0 errors, 0 warnings

    Building satellite assemblies...

    ------ Rebuild All started: Project: TodayScreenWizard, Configuration: Release .NET ------

    Preparing resources...

    Updating references...

    Performing main compilation...

    Build complete -- 0 errors, 0 warnings

    Building satellite assemblies...

    ------ Rebuild All started: Project: TodayScreenSupportCab, Configuration: Release Win32 ------

    Performing Makefile project actions

    Windows CE CAB Wizard

    Build log was saved at "file://c:\Program Files\.NET Compact Framework Samples\Today Screen\Code\Support\TodayScreenSupport_Managed\TodayScreenSupportCab\Release\BuildLog.htm"

    TodayScreenSupportCab - 0 error(s), 0 warning(s)

    ------ Starting pre-build validation for project 'TodayScreenSupport_Installer' ------

    ------ Pre-build validation for project 'TodayScreenSupport_Installer' completed ------

    ------ Rebuild All started: Project: TodayScreenSupport_Installer, Configuration: Release ------

    Building file 'C:\Program Files\.NET Compact Framework Samples\Today Screen\Code\Support\TodayScreenSupport_Managed\TodayScreenSupport_Installer\Release\TodayScreenSupport.msi'...

    Packaging file 'EULA.rtf'...

    Packaging file 'TodayScreenSupport.arm.cab'...

    Packaging file 'Setup.Exe'...

    Packaging file 'Setup.ini'...

    Packaging file 'TodayScreenSupportInstallLib.dll'...

    ------ Starting pre-build validation for project 'TodayScreenWizard_Installer' ------

    ------ Pre-build validation for project 'TodayScreenWizard_Installer' completed ------

    ------ Rebuild All started: Project: TodayScreenWizard_Installer, Configuration: Release ------

    Building file 'C:\Program Files\.NET Compact Framework Samples\Today Screen\Code\Support\TodayScreenSupport_Managed\TodayScreenWizard_Installer\Release\TodayScreenWizard.msi'...

    Packaging file 'TodayScreen_Exec.sln'...

    Packaging file 'EULA.rtf'...

    Packaging file 'TodayScreenData.dll'...

    Packaging file 'AssemblyInfo.cs'...

    Packaging file 'TodayScreen_Init.csdproj'...

    Packaging file 'vslangproj.olb'...

    Packaging file 'TodayScreen_Init.sln'...

    Packaging file 'Initializer.cs'...

    Packaging file 'TodayScreen_Exec.csdproj'...

    Packaging file 'TodayScreenWizardInstallLib.dll'...

    Packaging file 'Setup.Exe'...

    Packaging file 'Form1.resx'...

    Packaging file 'TodayScreen_Init.gac'...

    Packaging file 'TodayScreenWizard.dll'...

    Packaging file 'CustomTodayItem.vsz'...

    Packaging file 'TodayScreen.inf'...

    Packaging file 'Form1.cs'...

    Packaging file 'AssemblyInfo.cs'...

    ---------------------- Done ----------------------

    Rebuild All: 8 succeeded, 0 failed, 0 skipped



  • Learning VB

    Version 7.1 is vs2003, and You are going to use wizard with vs2005. I think, it is not possible directly, You should fix wizard for vs2005 support


  • Musafir

    Hello, when I install TodayScreenWizard.msi, I get an error in the end stating "Unable to locate C# Registry key for VS.NET version 7.1" . The installation seems to end correctly anyway, but I can't find the "CustomTodayItem" in Visual Studio. I use VS 2005. Can anybody help, please
    Thank you!

    Emanuele


  • Hubajube

    I'm afaid you need to install the VC++ package to get the sample up and running.

  • prawin

    Hi Ilya,

    I appreciate the work you have put into this so far... Believe me it’s incredibly frustrating when it works for other people and not yourself!

    The issue I'm having is that I can't build "TodayScreenSupport_Managed.sln " as the solution will not open without the following error...

    http://blogs.conchango.com/photos/conchango_bloggers/picture4080.aspx

    Which I feel relates to a missing file or two... Now I have installed this sample three times now and still with the same problem...

    I'm guessing I'm missing a step that will eventually create the code for the Managed Solution part that I'm missing...

    Again your work on this is greatly appreciated...

    Keni



  • JimBobJoe

    I was able to build the Today Screen Plug-in Host via eVC.

    After building the TodayScreenWizard.msi I proceeded to install it...

    I tried the Device installation but I couldn't find the TodayScreenSupport.msi... It is then I relised that the Managed code solution hadn't built it as it wasn't a part of the solution... I have tried to add it, but it seems as the folder containing the files is empty...

    I have reinstalled this sample a couple of times now, still to no avail...

    When I load the TodayScreenSupport_Managed Solution I get this error...

    The application for project '..........\TodayScreenSupportCab.vcproj' is not installed.

    Make sure the application for the project type (.vcproj) is installed.

     



  • mallakishore

    I suspect that you either do not have VC++ installed as a part of Visual Studio or the VC++ package is corrupt. Could you (re)install Vsual C++ and try again


  • CF Today Screen example