GPS Application and Windows Mobile 6 - Making Cab Files Using Visual Studio 2008 Professional Edition RRS feed

  • Question

  • Hey,

    Before I ask the question, let me please thank you for viewing this thread, with the intention of helping. Actually, I am C# newbie but I've made a project on this technology recently and that really helped me learning most of the common tasks. Now am building a GPS mobile app using C#.

    Not actually building from scratch as Microsoft provides the sample GPS application. There are a couple of issues am facing. First and the foremost is, am using a timer and a webrequest is sent every two minutes using the timer. Now the application feels like hanged, but it is actually working on the backend. How do I know? Because I can see it updating values live on server.

    May be you can guide on how to optimize and what is this slow... I know its C# but still its a basic app.

    Now the real question, I am using Visual Studio to make a cab file for this project. I setup a cab project and simply build it with the dependencies, it automatically detects. Now it even makes a cab file. I installed in on my cell, successfully. But the problem is I don't see any kind of dll or exe files or a way to actually start the software app. I did tried some thing, putting primary output in application and program folder. It did worked but on clicking the exe file in cell raised an error saying no dependencies found..

    Saturday, April 3, 2010 8:10 AM


All replies

  • Hi,

    With regard to your webrequest, you may be interested in using an Asynchronous call, as detailed in the following :-



    Using this technique will prevent a blocking call when making the web request.

    Do you have any further details regarding the error you see when running your application? If you view the Program Files directory and your application folder, via your desktop machine, you should see the DLLs and EXEs that were installed on your device. Can you confirm that all the DLLs are present as you would expect?

    Hope this helps.

    Paul Diston

    Saturday, April 3, 2010 8:40 AM
  • Well, thanks Paul. I've been here reading many of your nice replies to individuals.

    I install my cab file to my storage card, when I check it it from my PC. I see the folder is created and its only one file in there namely GpsSample.

    Basically, am using Microsoft provided GPS sample application. So its a solution namely GPS which has two projects under it, namely Microsoft.WindowsMobile.Samples.Location and GPS Sample and definitely the cab project.

    First I think I should learn and complete the installation of cab file and make it work. Once that works, I'll check the application and everything. Then I'll implement the Asynchronous call.

    Take care.

    That helped :) Paul, to get started.... Thank you.

    Saturday, April 3, 2010 8:51 AM
  • Hi,

    If the Microsoft.WindowsMobile.Samples.Location DLL listed in the dependancies for the CAB file in the Solution Explorer of Visual Studio?


    Paul Diston


    Saturday, April 3, 2010 9:01 AM
  • Yes, it is in the dependencies....
    Saturday, April 3, 2010 9:05 AM
  • And I've exactly followed this pattern, http://www.smartmobiledevice.co.uk/HowTo/CreateCabProject - Am aware as I've similarly made an MSI for desktop application.
    Saturday, April 3, 2010 9:08 AM
  • Hi,

    Can you try installing the following and let me know what files you now have in the directory :-



    Paul Diston

    Saturday, April 3, 2010 9:25 AM
  • sure.
    Saturday, April 3, 2010 9:26 AM
  • Hi,

    Feel free to contact me via MSN messanger on the following address if you would like to discuss this further :-



    Paul Diston

    Saturday, April 3, 2010 9:27 AM