windows-ce

Can't connect to SQL Server CE database

℡╲_俬逩灬. 提交于 2019-12-24 08:28:36
问题 I have the following code, just to test connection: public void Test() { SqlCeConnection conn = new SqlCeConnection(@"Data Source=/Application/Database.sdf;"); try { conn.Open(); label1.text = "Connection!"; } catch (Exception ee) { label1.text = "No connection!"; } } When trying to connect to this database, the application throws an exception at conn.Open() saying SqlCeException was unhandled and nothing more. The exception message is blank, so I'm having a hard time figuring out what went

Set ForeColor & BackgroundColor of each Column For Each Row Separately in .Net Compact Framework 3.5

﹥>﹥吖頭↗ 提交于 2019-12-24 06:38:05
问题 I am developing a Window CE 5 Program With Visual Studio 2008. By using a DataGrid Control in one of my forms, I need to change each row background and forecolor depending on some conditions. for doing this, I use this class: public class ColoredDataGridTextBoxColumn : DataGridTextBoxColumn { public Color BackgroundColor { get; set; } public Color ForeColor { get; set; } public ColoredDataGridTextBoxColumn() { BackgroundColor = Color.White; ForeColor = Color.Black; } protected override void

How can I programmatically prevent the PC connected to a handheld device from file syncing (grabbing files from the device)?

佐手、 提交于 2019-12-24 05:47:32
问题 As noted here, I added code to my handheld app to (attempt to) prevent certain types of files (by extension) from being synced to the PC. But this doesn't work if the user, on the PC, uses ActiveStync to enable file sharing. On doing so, regardless of handheld registry settings, it copies files from the handheld to the PC (from the handheld's \My Documents folder to the PC's C:\Users\clay\Documents\Documents on Clay's Device folder). Is there a way to programmatically prevent (on the handheld

Session and APP Scope for COM objects

有些话、适合烂在心里 提交于 2019-12-24 05:45:13
问题 We are going to develop ASP pages for a WIN CE device. The web server running on the system is httpd. I have a few doubts on the scope of com objects Does WinCE(httpd) ASP support Session and App Scope? Does page scope alone is supported in ASP in Wince? What should I do to introduce session and app Scope? Where can I get more information on this? 回答1: Does WinCE(httpd) ASP support Session and App Scope? According to MSDN: Windows CE does not provide support for the Session or Application

isatty on windows CE

孤街浪徒 提交于 2019-12-24 05:36:08
问题 Is there an equivalent to isatty() on windows CE? In other words, is there a way to detect in code if stdin/stdout/stderr has been redirected? 回答1: You could call GetStdIoPath (it's in coredll.dll - it's not documented in MSDN and I'm not sure if it's in any SDK headers, but you can always manually declare it as extern and the linker will find it). Here's my C# version - you can easily port it back to C if necessary: [DllImport("coredll.dll", SetLastError = true)] public static extern int

Anti-aliased rounded corners in Windows CE 6.0

﹥>﹥吖頭↗ 提交于 2019-12-24 04:54:14
问题 I'd like to display a smooth rounded rectangle on an ARM device running Windows CE 6.0. I started with RoundRect, but the result had jagged corners, since Windows CE uses GDI and doesn't support GDI+ as Windows Mobile 5+ does. My current provisional solution has been to create a lot of little corner bitmaps, but since the rest of the GUI design includes transparency, gradient fills, and variable width borders, this solution means creating and managing a large number of permutations of these

Installing my program on Windows CE 5

耗尽温柔 提交于 2019-12-24 03:58:08
问题 I'm in the progress of finishing up an application for Windows CE 5, and I was wondering what the easiest way of installing the application on CE 5 devices would be. Hitting "publish" in VS8 generates an installer, but this installer isn't compatible with CE 5. What is an easy, effective way of installing my applications on Windows CE 5? Edit: Follow-up here. 回答1: The easy way is to just add a new Deployment project to your existing solution. Right-Click your solution and pick Add > New

WinCE barcode scanner - COM Exception when initializing CCoreScannerClass

天大地大妈咪最大 提交于 2019-12-24 01:33:50
问题 I am following this tutorial (https://atgsupportcentral.motorolasolutions.com/content/emb/docs/manuals/14978403a.pdf), created a simple Windows Forms and successfully can debug it on the scanner (it's a Symbol MC3000). However I am getting an exception when trying to initialize the CCoreScannerClass: //Instantiate CoreScanner Class CCoreScannerClass cCoreScannerClass = new CoreScanner.CCoreScannerClass(); The exact error message is this: "COM object with CLSID '{9F8D4F16-0F61-4A38-98B3

Does VS2010 support Windows-mobile projects?

我的未来我决定 提交于 2019-12-24 00:47:15
问题 I have Visual-studio 2010 prot and I am trying to create a Windows-mobile or Windows-CE project, but I don't see how to do it. Can anyone help ? 回答1: For VS 2010 there is Visual Studio Phone. You can check VS 2010 Phone. You can find there a lot more for windows phone development. 回答2: No, Window Mobile development is not available in VS 2010. You must use VS 2008. If you want to do Windows Phone 7, you can (and must) use VS 2010, but it is not the same as Windows Mobile (i.e. Smart Device)

How can I view/edit my registry settings on a Windows CE 6 device?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-23 20:19:04
问题 In his second comment here, PaulH suggests changing registry settings, providing this link. I'm not sure editing the registry is really something I want to do, because copying files to the handheld was working fine until late yesterday, and I doubt any change was made to the registry to cause that problem to commence, so I'm not at all sure that changing the registry will fix the problem. At any rate, I wanted to compare the values I have in the registry with what is shown on that msdn page