windows-ce

Find textBox, checkBox, any object by name C#

扶醉桌前 提交于 2019-12-12 01:07:32
问题 This is really weird, but I can't seem to find a specific textBox(i) or checkBox(i) in .NET CF. In .NET 3.5 I can create this function: void checking(int input) { CheckBox checkbox = (CheckBox)this.Controls["checkBox" + input.toString()]; if(checkbox.isChecked) //do something here } In this example, it gets the name of the checkBox (i.e checkBox1, checkBox2, etc). However in .NET CF 3.5 for WINCE6, it keeps on telling me that I need an index inside Controls[] because it can't convert string

RFC on HttpWebRequest vs RESTSharp from Windows CE / Compact Framework 3.5

痞子三分冷 提交于 2019-12-12 00:52:15
问题 I created a simple WebAPI service in .NET4 and Visual Studio 2010. I need to consume that service in a Windows CE / CF 3.5 app I do have HttpWebRequest available to me, but am not sure if this is the way to go, or I should use RestSharp. Does anybody have insight/experience that would help me decide? I prefer not using 3rd party code when possible to avoid it, but am willing to do so if there is a clear advantage over the "raw" offerings. Does anyone have, or know of, examples for accessing

Unable to set time on Win CE device

一曲冷凌霜 提交于 2019-12-12 00:00:35
问题 I created a software, where time is very important. Because of this every time some data is transferred I set also the time on the win ce device. I transfer trough socket DateTime.Now.Ticks and set time with [DllImport("coredll.dll")] private extern static uint SetSystemTime(ref SYSTEMTIME lpSystemTime); Time zone is set correctly to GMT+1 on PC, where server application is running and also on device. HomeDST is 0 on device. My problem is, that there is always one hour difference between time

How can drawing routines be optimized to achieve the maximum refresh rate in Windows CE?

假如想象 提交于 2019-12-11 23:42:46
问题 In my application i am drawing some set of lines (like a vertical graph), and the refresh rate will be around 30 times in a second. I have calculated the performance and it is taking 400 milliseconds to draw complete lines, but this won't be fast enough since we have to refresh the screen every 34 milliseconds. I am drawing on CDC. We will be drawing on a Windows CE device with a 400 MHz processor. Drawing involves the simple MFC APIs like MoveTo , LineTo , FillRect , etc. on DC of View: CDC*

how to solve #error : Must define a target architecture in wince mfc application?

我们两清 提交于 2019-12-11 23:42:38
问题 how to solve #error : Must define a target architecture in wince mfc application?i got to know that we need to use device header and libraries but how can i use that? 回答1: Presumably, the error is because you're trying to build the application against the (desktop) Windows SDK. The easiest thing to do is to create a new "Win32 Smart Device" project and add your code to it. Alternatively, check the "Compile for architecture" setting under project properties -> C/C++ and ensure that it is set

Rapi.dll / OpenNETCF Invoke example

随声附和 提交于 2019-12-11 21:19:49
问题 I'm failing to use the Invoke method of the OpenNETCF Rapi.dll. Can somebody please post an example? I can't seem to find one anywhere on the web. Other function calls worked fine, but I couldn't figure out Invoke. (dllPath was OK) MyDll is in the root of the CE device. It has a FindAndKill method which needs one string argument I've tried this: var rapi = new CODMrapi.CODMrapi(dllPath); var encoding = new System.Text.UTF8Encoding(); rapi.Connect(); byte[] inputData = encoding.GetBytes

How to install an application into the Windows CE 7 image?

 ̄綄美尐妖づ 提交于 2019-12-11 20:38:57
问题 I was looking for a guideline on how to install or better said how to integrate an application into the Windows CE 7 run-time image. Concretely I need to install Android SDK into the Win CE 7 Image. If it is not possible then does anybody can say if is it possible to install it after first boot. The same question can be applied on Java JRE for embedded devices. In my situation I have ARM 7 based board with enough resources to run Win CE 7. In fact I managed to install it. Now I need Java on

Delete a registry value using a CAB installer

大憨熊 提交于 2019-12-11 19:59:41
问题 Is it possible to delete a registry key using a CAB installer that is generated using VS2005? The CAB is targeted at Windows CE 6. Edit: I did find this http://forum.xda-developers.com/showthread.php?t=415990, but I was hoping to find a way to do it using VS2005 or VS2008 and in an easier way. (I did not even start to try the instructions on that post) 回答1: Yes.. you can.. But u need to mention the proper registry value.. see this link for more info.. 来源: https://stackoverflow.com/questions

SQL Server CE's DDL parser is very picky but secretive about what it is finding fault with

谁都会走 提交于 2019-12-11 18:54:52
问题 I keep getting "there was an error parsing the query" no matter what I try with my DDL. So I need an expert in the SQL-Server-CE flavor of SQL to tell me which of the following is the preferred method (or something else, quite likely). Note that I'm not worried about "SQL injection" with these string format elements: 1) string ddl = string.Format("ALTER TABLE {0} ADD salvationID nvarchar(19)", tablename); ddl = string.Format("UPDATE {0} SET redemptionID = ''", tablename); 2) string ddl =

Making GPRS Connection programmatically using C# for windows CE 5.0?

让人想犯罪 __ 提交于 2019-12-11 18:05:09
问题 I'm new to Windows CE so tack it easy. I want to create a GPRS connection pragmatically and dial it in C# for windows CE 5.0 (Visual Stdio 2008). I searched a lot more that 100 pages but nothing!!! for example : http://msdn.microsoft.com/en-us/library/bb840031.aspx For connecting GPRS I have to dial *99# and some settings but I don't know how to use these sample codes with my settings. The connection management tacks no settings or I do not know how. Is there any sample code to create GPRS