I have an Pocket PC application which is compiled with windows mobile 6 professional SDK.
Now i want the application to work with Windows CE.
What are the procedure to compile it on Windows CE and make it work on Windows CE?
It may sound silly or obvious, but: Build it using the Windows CE SDK (download link).
Step 1: After installing the SDK, create a new Windows CE Project.
Step 2: Take the blank Form1.cs form in the new CE Project and rename it to the Form you use in your old Windows Mobile 6 Project.
Almost done.
Step 3: Now, close Visual Studio, browse to the Windows CE Project Folder, and delete the that form you just renamed.
Step 4: Browse to your Windows Mobile 6 Project Folder. Copy everything except for the bin and obj folders and the .proj and .sln files to the Windows CE Project Folder.
Step 5: Open Visual Studio and the Windows CE Project.
Step 6: Get crazy and hit Run [F5].
This will most likely produce a number of errors. These errors are because you have called a function that is specific to Windows Mobile or it could be because the Windows CE version of the same function requires different parameters.
Step 7: Some things may not be easily ported to Windows CE. For those items, you can start new threads like "How do I do FunctionWM() using Windows CE?" or such.
Related
I created a very simple windows form app in visual studio 2012 on a Windows 7 machine that has been working on Windows 7 for a few years with no issues. The user upgraded to Windows 8.1 recently and when I tried to install the app, there is no error message but it doesn't work. It appears to install and creates the desktop shortcut but the application won't launch. What I can I do to make it work on Windows 8.1? I've tried using the 'run application made for previous versions of windows" but the app doesn't appear on the list and I can't seem to find the location when I try to browse to it. It seems like it should be a simple fix but I'm very inexperienced and need some help. Any suggestions are greatly appreciated.
I have purchased Windows 8.1 pro and downloaded Visual Studio Express 2012 for Windows Phone.
But when I try to run a simple app in the emulator but it says You need to Update Visual Studio Express 2012 to update 3 since it has some compatibility issues,i have downloaded the ISO file from the below link.
http://www.microsoft.com/en-us/download/details.aspx?id=39305
But when I try to install I get these errors:
What is the issue here ?
Setup Failed
1) The form specified for the subject is not one supported or known by the specified trust provider.
2) The form specified for the subject is not one supported or known by the specified trust provider.
So how to solve this issue here ?
If you want to create Windows 8.1 apps you should install Visual Studios 2013.
It seems only the VS 2013 Remote tools for ARM works on Windows 8.1.
Does this mean that Visual Studio 2012 is obsolete now for WinRT development?
Update on 25 Nov 2013:
Just saw Moche's answer and was about to post the update. Yes VSE2012 on Win8.0 can now remote debug on Surface2 / Win8.1 using VS2012 Update 4 which was released over the weekend.
Also it is required to download the Remote Tools for Arm that are part of the Update 4:
http://www.microsoft.com/en-au/download/details.aspx?id=39305
Click the 'details drill down' to get the 'Remote Tools' Download
To get remote debugging running, you need to right-click on the project file in Solution Explorer and select debugging under the Configuration tab - then you will notice a field with 'machine name'... complete the machine name of the Surface 2 and select Authentication 'Yes' - Ensure both the Visual Studio Computer and Surface 2 are on the Same Workgroup in Control Panel, System, Advanced System Settings, Computer Name Tab. These brief instruction assume you will be using Windows Private lan authentication. If you want to use your live account for authentication simply google how to Remote Debug Visual Studio 2012 with Windows Live Authentication..
When you run the remote tools installation for the first time on the Surface 2 tablet, you will be prompted by a wizard which sets up the necessary exceptions for the Windows firewall on the tablet.
Actually I succeeded to do the debugging on 8.1 using VS2012. I've installed the latest update 4 of the Debugging Tools. Then I went in Windows Explorer to Program Files->MS Visual Studio 11->Common 7->IDE->Remote Debugger>arm and ran msvsmon from there. That's it - I was able to connect to it from my Windows 8 machine running VS 2012.
Yes, it's indeed obsolete.
For windows 8.1 RT development, set up a separate 8.1 machine with VS 2013.
Update
As of Visual Studio 2012 Update 4, remote debugging to 8.1 seems to be available.
The Answer above that 'Its obsolete' pertaining to VS 2012 and debugging on Win 8.1 is (entirely) not correct - the correct phrase would be that Debugging on Win 8.1 client from a Visual Studio 2012 machine is not supported at time of Win 8.1 preview - Hopefully VS 2012 update will soon allow it to connect to Visual Studio 2013 remote debugger tools to allow Windows 8 development to continue between Windows 8 and Windows 8.1..
As Per:
http://weblogs.asp.net/lduveau/archive/2013/07/10/visual-studio-2012-2013-and-windows-8-1-apps-clarifications.aspx
Quoting:
Visual Studio 2012 (running on either Windows 8 or Windows 8.1) continues to support creating and working with Windows Store apps for Windows 8. It does not support creating or working with Windows Store apps for Windows 8.1. Apps targeting Windows 8 continue to work on Windows 8.1, they just can’t take advantage of all of the new Windows 8.1 functionality and performance improvements.
When I read the Answer above I got my knickers in a real twist and then I thankfully found this (and now have hope my shiny Surface 2 isn't a desk weight for developing) -->
quoting off:
http://social.msdn.microsoft.com/Forums/en-US/3e5bd281-4dde-418b-a9fe-078815523fe1/win-81-surface-remote-debugger
For debugging applications on Windows 8.1 Preview RT devices you need to use VS2013 Professional, Premium, or Ultimate Preview with the Remote Tools for VS2013 Preview.
We are aware that VS2012 is not compatible with Windows 8.1 Preview, and we are working to address this with the next update to VS2012.
Thanks,
Dave Lubash
Visual Studio Team
#Carl L - After further digging.. It seems both our answers are sort of right.. To support Win 8.1 currently, you need Win 8.1 and Visual Studio 2013 installed - I tried Installing Visual Studio 2013 Express on my Windows 8 PC and NO DICE..
I guess the only clarification I am adding is that developers can continue using Windows 8 with Visual Studio 2012 to create apps that run on Windows 8 (only) and will also be available in the Apps Store and run compatibly on Windows 8.1 (but not use all the latest 8.1 optimized features). I am only taking this based on MS forum posts.. The information from Microsoft doesn't properly address this point in its documentation at:
http://www.microsoft.com/visualstudio/eng/products/compatibility-2013
Its also worth pointing out that Visual Studio 2013 Express (free version) is not able to produce Windows 8 Apps - ONLY Windows 8.1 apps (so that part of your answer is correct currently). So in a sense it is unsafe to say Visual Studio 2012 is obsolete as it is currently required to support creation of Windows 8.0 apps.. Unless you don't mind ditching App updates for your existing user-base who may not have yet made the jump to 8.1 (not a sound development model and I am very surprised MS is making fragmentation on its own new platforms for developers currently).
At the moment I am a bit miffed that I am forced to upgrade to Windows 8.1 and VS 2013 in order to debug on my Surface 2 (RT) tablet and in that case would not be able to debug Windows 8.0 apps on my Surface 2 (RT) using VS 2012 until MS hopefully updates VS 2012 and/or the VS 2012 remote debugger tools.
Hope that clarifies a bit - seems you were mostly right which is a real shame if Microsoft is serious about attracting developers to its newest OS and having its free development tools rival that of Android OS and iOS..
I finished a windows phone project. And try to do Debug->Start windows phone application analysis on visual studio 2012 (also 2013), but it doesn't work, and a dialog box pops up:
now I want to start windows phone application analysis on my project. how can I do this??
PS: I tried create new app from the windows phone template, it has the same error!
I had the same issue and alternatively i had error when opening .sap files too with :
Microsoft.Smartdevice.Connectivity.DeviceNotFoundException
This last error point me that you have to install SDK Update for Windows Phone 7.8 and everything work now.
Surprising that this prerequisite is not specified.
I have a copy of Visual Studio 2102 installed on my computer. Since my computer met all the requirements for the emulator (SLAT, Hardware Assisted Virtualization etc.), i downloaded the Windows Phone 8.0 SDK and proceeded to install it.
Unfortunately, i cannot create a new Windows Phone application. Project templates (Windows phone application, Pivot application, Panorama application etc) do not appear in VS2012 main page. The only available option is "Discover Windows phone tools" (which redirects you to the download page of the SDK).
I tried to uninstall everything and repeat the process, but the result is the same.
I'm still able to open projects made with the old Windows phone SDK 7.1 and test them on the new emulator. This should be enough to prove that the installation was successfully completed.
I can't understand what went wrong. May you help me?
I had a similar bug because my Visual Studio Pro is in French. When you install Windows phone SDK, an express version of vs is already installed, you can create phone project in this version and open these projects in vs pro but you cannot create phone project directly in vs pro, that's right ?
Go to : C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ProjectTemplates\CSharp\Windows Phone
You should have a folder called 1033, it contains phone template for english version of visual studio. Copy and paste it then rename the copy in your code language (http://msdn.microsoft.com/en-us/library/0t12k0f0.aspx , for me it's 1036).
After that, close visual studio, launch C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat with admin rights and type : devenv.exe /InstallVSTemplates /ResetSettings
Relaunch visual studio pro, and you should have a Windows phone entry.
Parallels provides a very good knowledge-base article on fixing this problem:
KB: Running Windows 8 Phone emulator in the Windows 8 virtual machine
Copy lang files also in:
...\IDE\ItemTemplates...
...\WindowsPhone\ProjectTemplates...
It helped me!