windows-ce

How can I reference ProcessInfo's members and ProcessCE in my Windows CE util?

廉价感情. 提交于 2019-12-12 04:55:46
问题 I found this code from CathalMF here: ProcessInfo[] list = ProcessCE.GetProcesses(); foreach (ProcessInfo pinfo in list) { if (pinfo.FullPath.EndsWith("MyExe.exe")) pinfo.Kill(); } ...and modified it to my ends (no pun intended) like so: ProcessInfo[] list = ProcessCE.GetProcesses(); foreach (ProcessInfo pinfo in list) { if (pinfo.FullPath.EndsWith("HHS.exe")) pinfo.Kill(); // This should work, too, eh? if (pinfo.FullPath.EndsWith("HUtilCE.dll")) pinfo.Kill(); } ...but several things are

How can I circument the “80004005 There is a file sharing violation…” err msg on a SQL Server CE database?

℡╲_俬逩灬. 提交于 2019-12-12 04:37:22
问题 I am getting error 80004005 There is a file sharing violation. A different process might be using the file. when trying to open a SqlCeConnection . Is there a way to close a SQL Server CE database programmatically, to try to nip that problem in the bud? Something like (pseudocode): SqlCeDatabase SQLCeDb = "\My Documents\HHSDB003.sdf"; if (SQLCeDb.IsOpen) { SQLCeDb.Close(); } ? Or a way to set the connection so that it doesn't care if the database is open elsewhere/wise, such as:

How can I install CF 2.0 on my handheld device, and which version/architecture?

↘锁芯ラ 提交于 2019-12-12 04:13:00
问题 To install CF 2.0 on my handheld device (replacing the existing/unwanted version 3.5), according to this (straight from the horse's mouth), I need to run netcfsetupv2.msi from the following directory: \Program Files\Microsoft.NET\SDK\v2.0\CompactFramework I have one problem with that, though: I have no netcfsetupv2.msi - not there or anywhere else, in fact (although I do have a C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v2.0 folder ). I do see "interesting" files such as

How can I remove more than one item from a listbox?

…衆ロ難τιáo~ 提交于 2019-12-12 03:25:40
问题 This is really getting annoying; or, to be honest, it became quite annoying a good while back. Programmatically removing items from a listbox should be pretty straightforward, yet it seems everything I try ends up the same: with an exception. This time it's "InvalidOperationException". In context (excerpt of log file): Date: 2/12/2015 7:15:17 PM Message: Reached frmMain.UpdateGUIAfterTableSend Date: 2/12/2015 7:15:17 PM Message: From frmMain.SendDeliveries(): InvalidOperationException; Inner

Play Flash file under WinCE?

耗尽温柔 提交于 2019-12-12 03:19:27
问题 Is it possible to play a Flash file under WinCE? I know there is a player for Windows Mobile, but WinCE seems to not have one. It seems like you can license a player from Adobe for WinCE but I have not had any luck getting information from Adobe. I found this post that mentions using a AxShockwaveFlashObjects using C# and .NET Compact Framework. Does anybody have any experience with this? 回答1: You need Adobe Flash Lite, which is licensed from B-Square. 来源: https://stackoverflow.com/questions

How to stay connected to database until screen close?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:09:08
问题 I developed a C# program for Windows-CE platform. The program open and close the connection to the database for every single interaction. See the code below. Button click: private void btnStkIn_Click(object sender, EventArgs e) { formStockIn = new frmStkIn(); formStockIn.Show(); } Select Data: try { using (SqlConnection sqlConn = new SqlConnection(<connection-string>)) { sqlConn.Open(); //Execute command SqlCommand sqlCmd = new SqlCommand(<Select Query>, sqlConn); SqlDataReader sqlReader =

Windows CE 6 remote debugging. No call stack when pause program

时间秒杀一切 提交于 2019-12-12 03:06:42
问题 I am using Visual Studio 2008 for a remote debugging session with WindowsCE 6.0. When I click 'Pause' I cannot see the program call stack. Instead of a call stack with any functions of my program I just see a single address. I am using the debug technique described here (or in German here) 回答1: Your "pause" likely stopped the application somewhere in a system call so there's no "line of code" to show. Set an actual breakpoint in your code and run to that. You'll then get a call stack and all

How to detect Network type on Win Mobile

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:47:06
问题 I spend lot of time searching how to determine the current network type such as WIFI, 3G, Ethernet. But I cannot find any information online in windows platform. I want to detect the Ethernet network type, but I cannot find any API that can retrieve the network type. I've find Connection Manager for keyword but there's less information. Did anyone have any idea? Please help me...I was blocked by this for 2 weeks. Thanks. 回答1: Look in the registry key HKLM\system\state\connections , there is

How can I debug a CE app on the device?

泄露秘密 提交于 2019-12-12 02:25:24
问题 I asked a similar, but not identical, question here My Windows CE app won't even start up on the handheld device (an old version of it does, but not the new version). It builds, copies over, but just refuses to run; it "flashes" when I 2-click it, but that's it. No err msg, just won't budge. I added a global exception handler in hopes it would catch the problem and give me a glimpse into it with this code: public static int Main(string [] args) { try { // A home-brewed exception handler

c# how to get handle over a specific mainmenu using coredll.dll

喜欢而已 提交于 2019-12-12 01:14:21
问题 I am using an application that copies text from a textbox of another running application. I do this through working with coredll.dll. But the problem is the running application's mainMenu should be clicked in order to return a text that I need to copy. How can i get the handle over a specific mainmenu using coredll.dll? I used remote Spy++ to view handlers but I cant distinguish which one is it. The handlers just contains handlers for controls such as textboxes and labels and not for