{"id":317,"date":"2009-04-12T23:40:24","date_gmt":"2009-04-12T18:10:24","guid":{"rendered":"http:\/\/techtwaddle.net\/?p=317"},"modified":"2011-04-12T23:40:40","modified_gmt":"2011-04-12T18:10:40","slug":"applications-creating-a-simple-ui-application-for-windows-mobile-6-using-visual-studio-2005-part-1","status":"publish","type":"post","link":"https:\/\/techtwaddle.co.in\/blog\/2009\/04\/12\/applications-creating-a-simple-ui-application-for-windows-mobile-6-using-visual-studio-2005-part-1\/","title":{"rendered":"Applications: Creating a simple UI application for Windows Mobile 6 using Visual Studio 2005: Part 1"},"content":{"rendered":"<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">Time to do some actual work. As the title suggests, I will be creating a simple UI application for windows mobile 6 professional device using visual studio 2005 and improve it step by step. I will cover the developments over maybe 2 or 3 posts and lets see how it goes.<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">Make sure you have installed Visual Studio 2005 and Windows Mobile 6 professional SDK before you proceed.<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">Note: When creating new smart device projects with VS2005 you might get a script failure error saying that the project creation failed, its a known issue and happens when you have IE7 or IE8 installed. Strangely, I have IE6 SP2 on my machine but the same error still showed up. Follow the instructions here to resolve the problem:<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<a style=\"font-family: Comic Sans MS;\" href=\"http:\/\/blogs.msdn.com\/vcblog\/archive\/2009\/03\/28\/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx\">http:\/\/blogs.msdn.com\/vcblog\/archive\/2009\/03\/28\/some-vs2005-and-vs2008-wizards-pop-up-script-error.aspx<\/a><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">Open VS2005, select File-&gt;new-&gt;Project. The project wizard shows up. In &quot;Project Types&quot; select &quot;Smart Device&quot; under &quot;Visual C++&quot;. On the right side select &quot;Win32 Smart Device Project&quot; and choose a name and location for this project. Lets call it &quot;HelloWorld&quot;.<\/p>\n<p><\/font><\/div>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">The project wizard now shows up asking you to select the platform and other project settings. Select &quot;Next&quot;. Your Windows Mobile 6 professional sdk should show up on the list of installed sdk&#8217;s. Add this sdk to the &quot;Selected SDK&#8217;s list&quot; and lets remove &quot;Pocket PC 2003&quot; which will be selected by default. Click Next. The final page lets you select the type of your project and other options. Select &quot;Windows Application&quot; and leave the &quot;Additional Options&quot; and &quot;Add support for&quot; sections as is. Do not select &quot;Empty Project&quot; or &quot;ATL&quot; or &quot;MFC&quot;. We will see how to go about creating an empty project in a later post. Click &quot;Finish&quot; and you are done. Source files and resource files which were automatically generated by the project wizard will now show up in solution explorer.<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">I prefer to work with &quot;Windows Mobile 6 professional emulator&quot; rather than the classic emulator. Basically, the classic emulator does not support phone functionality, you can see that the &#8216;Talk&#8217; and &#8216;End&#8217; buttons are not present. I will cover using the phone functionality in the emulator in later posts. So for now, just select the professional emulator. (With default settings, there should be a drop down list box on the top-left which enables you to select the type of emulator.)<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">Open stdafx.cpp and compile it (ctrl+F7). Open HelloWorld.cpp and compile. Now build the solution (F7). This should build our project without any errors. HelloWorld.exe should now be present under the debug folder in our project path. In my case it is: F:\\MyProjects\\HelloWorld\\HelloWorld\\Windows Mobile 6 Professional SDK (ARMV4I)\\Debug-&gt;HelloWorld.exe<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<\/font><\/p>\n<div style=\"text-align: justify; font-family: Comic Sans MS;\"><font size=\"3\">From the &quot;Debug&quot; menu select &quot;Start Debugging&quot;, the emulator will now start and your application should deploy on it. This is how the application should look:<br \/>\n<\/font><\/div>\n<p><font size=\"3\"><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<img decoding=\"async\" loading=\"lazy\" width=\"357\" height=\"548\" style=\"font-family: Comic Sans MS;\" alt=\"Application running on emulator\" src=\"\/images\/geekswithblogs_net\/TechTwaddle\/HelloWorld\/HelloWorld1.JPG\" \/><br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<br style=\"font-family: Comic Sans MS;\" \/><br \/>\n<span style=\"font-family: Comic Sans MS;\">So there it is. A dumb application really. Let us add some functionality to it in the next post.<\/span><br \/>\n<\/font><\/p>\n<p>\n<a href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/04\/16\/applications-creating-a-simple-ui-application-for-windows-mobile-6-again.aspx\">Part 2<\/a><br \/>\n<a href=\"http:\/\/geekswithblogs.net\/TechTwaddle\/archive\/2009\/04\/26\/applications-creating-a-simple-ui-application-for-windows-mobile-6-yet-again.aspx\">Part 3<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Time to do some actual work. As the title suggests, I will be creating a simple UI application for windows mobile 6 professional device using visual studio 2005 and improve it step by step. I will cover the developments over maybe 2 or 3 posts and lets see how it goes. Make sure you have &hellip; <a href=\"https:\/\/techtwaddle.co.in\/blog\/2009\/04\/12\/applications-creating-a-simple-ui-application-for-windows-mobile-6-using-visual-studio-2005-part-1\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Applications: Creating a simple UI application for Windows Mobile 6 using Visual Studio 2005: Part 1<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1ktFF-57","_links":{"self":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/317"}],"collection":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":1,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":318,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/posts\/317\/revisions\/318"}],"wp:attachment":[{"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techtwaddle.co.in\/blog\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}