windows-ce

How do I switch an image in “XAML for Windows Embedded (Compact 2013)”

旧城冷巷雨未停 提交于 2019-12-11 17:49:22
问题 I have a project for Windows CE that uses XAML for Windows Embedded (Compact 2013) (also known as "Silverlight for Windows Embedded") for the GUI. I defined an image in xaml and now I want to switch this image in the c++ code behind part. How do I do this? 回答1: I found this solution: m_pBatteryStateImage is the image, defined in Xaml. The URIs for the images can be found in the auto generated file PROJECTNAMEGenerated.rc2 void MainPage::SetBatteryState(BatteryStateFlags batteryState) { BSTR

How does one designate the root of a handheld device?

一曲冷凌霜 提交于 2019-12-11 16:39:07
问题 I need to recursively search a handheld device for any files anywhere on the device that follow a certain pattern (such as " Platypus .XML"). To pass the root of the device to my directory traversal method, do I pass "\" or something else? In Windows Explorer, the device is "J:\" - but I know that can't work, because it won't be mapped to J for everyone. The device's full name in Windows Explorer is something like: Duckbill (\\LEXINGTON\dev\Xmen\Miguel\Installs) (J:) ...but similarly, each

Unknown USB device on Windows CE [closed]

自古美人都是妖i 提交于 2019-12-11 15:56:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . We have a project, where we use really old project specific Windows CE 5.0 devices in a kiosk application. We are trying to replace the USB connected Lexmark T640 printer with a new USB printer (Kyocera P3055dn). The printer works, but Windows CE complains about an unknown USB device (in the moddle of the screen).

Simple example to implement hive based registry?

女生的网名这么多〃 提交于 2019-12-11 14:03:26
问题 Simple example to implement hive based registry? I have an appliaction in which i should maintain the value of volume up and down, everytime when i start or turn off the application, for this i came across hive based registry. But dont know how to implement and how to use? Please Reply Thanks in advance 回答1: You can start by reading this post: http://geekswithblogs.net/BruceEitman/archive/2009/08/11/windows-ce-what-is-hive-registry.aspx and then read the MSDN article on setting the Hive Based

C# WIndows CE Compact Framework 2.0 Set System Timezone

霸气de小男生 提交于 2019-12-11 13:52:57
问题 I want to change the system time zone programmatically in my windows CE Mobile ?? How do I do it ?? I read through some posts but i am not able to do it ?? Can someone give an sample code to acheive it ? 回答1: That is easy but tricky if you cross DST: http://www.hjgode.de/wp/2010/10/08/windows-mobile-setsystemtime-and-dst-einsteins-relativity-theory/ private DateTime startDateTime = DateTime.Parse("2010/9/24 11:42:00"); [DllImport("coredll.dll", SetLastError = true)] static extern Int32

Java JNA read codes sent via window messages

允我心安 提交于 2019-12-11 13:30:44
问题 I need to read codes sent via Windows Messages with Java in a Windows CE device, I'm using JNA but I'm not succeeding with this issue. I've defined the library call: public interface CoreDll extends StdCallLibrary { //loads the coredll with unicode options CoreDll INSTANCE = (CoreDll)Native.loadLibrary("coredll", CoreDll.class, W32APIOptions.UNICODE_OPTIONS); //native calls INT_PTR CreateWindowEx(int dwExStyle, String lpClassName, String lpWindowName, int dwStyle, int x, int y, int width, int

Can we Create Smart Device Project in VIsual Studio 2015 Professional

心已入冬 提交于 2019-12-11 10:17:51
问题 I am soon going to get VS 2015 Pro. Can I create Smart Device Projects for windows CE Version 5 and 6. 回答1: No you can't. Visual Studio 2010 does not support mobile application development for versions of Windows Phone prior to Windows Phone OS 7.0. The 2015 doesn't support either. You must use Visual Studio 2008. Here's some download links, and don't forget about the service pack. Different visual studio versions coexist just fine, right now I have 3 versions installed (2008, 2012, 2013)

NETCFv35.Messages.EN.cab installation

a 夏天 提交于 2019-12-11 07:55:16
问题 So I get those typical message below on my Window CE 6.0 , upon reading more about it I found the file NETCFv35.Messages.EN.cab under C:\Program Files\Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\Diagnostic “An error message is available for this exception but cannot be displayed because these messages are optional and are not currently installed on this device. Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 6.0 and above or ‘NETCFv35.Messages.EN.cab’ for other platforms

Can I give an emulator more disk space?

和自甴很熟 提交于 2019-12-11 07:40:36
问题 The compilation of my Compact Framework app (.NET 3.5, VS 2008) failed with this error: Deployment and/or registration failed with error: 0x8973190e. Error writing file '%csidl_program_files%\hhs\system.data.dll'. Error 0x80070070: There is not enough space on the disk. Selecting Tools > Device Emulator Manager shows me nothing promising; nor does Project > Properties > Devices. UPDATE Vasiliy, is this what you meant? I: 0) Created a folder on my C drive named

sprintf buffer global data overflow - how to detect it, Windows

安稳与你 提交于 2019-12-11 07:37:31
问题 I am wondering if it's possible to detect this kind of buffer overflow somehow in Windows. Buffer is global ( not on stack ) so /RTC in Visual Studio 2008, VS2012 is not checking it. MinGW gcc also failed. #include <stdio.h> char buffer[2]; void main() { sprintf(buffer,"12345"); } My first thought was static analysis. VS2012 Code Analysis : nothing CppCheck: nothing PCLint Online: nothing ( http://www.gimpel-online.com/OnlineTesting.html ) PVS-Studio: nothing another solution is to use _s