windows-ce

What could be causing a System.TypeLoadException?

点点圈 提交于 2019-12-17 06:14:48
问题 I'm developing, with VS2008 using C#, an application for Honeywell Dolphin 6100, a mobile computer with a barcode scanner that uses Windows CE 5.0 like OS. I want to add a functionality that can send files from the local device to the distant server. I found the librairy "Tamir.SharpSSH " which can garantee this. I tested the code on a console application and on normal windows forms application and it works perfectly. But when I tried to use the same code on the winCE device, I get a

How to use AddFontResource in c# for Windows CE 5.0 application with .NET 2.0

家住魔仙堡 提交于 2019-12-14 03:04:42
问题 I'm trying to develop a Smart Device program for Windows CE 5.0 device in my car with Visual Stdio 2008 pro and c# with .NET 2.0. I want to add a font using AddFontResourceEx, but I can't get it to work. Here is the code: public partial class Form1 : Form { public Form1() { InitializeComponent(); } private const uint FR_PRIVATE=0x10; [DllImport("GDI32.dll",EntryPoint="AddFontResourceEx")] static extern int AddFontResourceEx(string lpszFilename, uint fl, IntPtr pdv); private void button1_Click

How can I Retrieve a List of All Table Names from a SQL Server CE database?

霸气de小男生 提交于 2019-12-13 21:07:00
问题 Is there some SQL that will either return a list of table names or (to cut to the chase) that would return a boolean as to whether a tablename with a certain pattern exists? Specifically, I need to know if there is a table in the database named INV[Bla] such as INVclay , INVcherri , INVkelvin , INVmorgan , INVgrandFunk , INVgobbledygook , INV2468WhoDoWeAppreciate , etc. (the INV part is what I'm looking for; the remainder of the table name could be almost anything). IOW, can "wildcards" be

Which form event should I use to pop up a login form?

佐手、 提交于 2019-12-13 10:36:02
问题 Before the user makes use of the main form, I want to pester them to enter their username, password, and siteNumber. Should I invoke a ShowDialog on the login form from the Main form's Load(), Activated(), GotFocus(), or Validate() events? Or should I just invoke the login form from the main form's constructor? This is a Windows CE app, and those are the only options I have, event-wise (there is no "Shown" event). 回答1: Have you considered prompting via ShowDialog before you even get to the

Looking for Free & Light web server for WinCE [closed]

允我心安 提交于 2019-12-13 08:46:53
问题 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 4 years ago . I want to find free and light Web Server for WinCE. The best of variants is I really want to find light and free ASP.NET web Server. Or maybe if I can use Web Frameworks for Python or Ruby (maybe Ruby on Rails) or maybe I even can run something alike haskell web server (but I don't really believe it). I don't

Marshal.SizeOf() & Marshal.StructureToPtr() Throwing Exceptions in .NET CF WIN-CE

末鹿安然 提交于 2019-12-13 08:16:04
问题 I am working on C#.Net CF for WIN-CE platform. In my code I am using int size = Marshal.SizeOf(typeof(struct_Obj)); IntPtr newptr = Marshal.AllocHGlobal(size); Marshal.StructureToPtr(struct_Obj, newptr, false); I am trying to send this struct info: [StructLayout(LayoutKind.Sequential,CharSet = CharSet.Unicode)] public struct __NIC_STAT { ulong Size; // Of this structure. public Char[] ptcDeviceName; // The device name to be queried.. ulong DeviceState; // DEVICE_STATE_XXX above ulong

System.MissingMethodException

我只是一个虾纸丫 提交于 2019-12-13 07:28:13
问题 I'm developing a .NET CF 3.5 application on WinCE6 that will build an exe an some dlls. I have defined an example class like this in a class library project: using System.ComponentModel; using System; namespace Utils { public static class Test { public static void runTest() { Exception e = new Win32Exception(0, "CreateToolhelp32Snapshot error."); } } } From my main executable project I will call the runTest() method. Everything is well at compile time. But at run time the following exception

How could the existence of pseudo debug strings cause a difference in functionality?

依然范特西╮ 提交于 2019-12-13 06:17:59
问题 If I have these sprinkled throughout my code: MessageBox.Show("See a format exception yet? #1");//todo: remove (there are 7 of these, numbered from 1..7, most of which display (1,2,5,6,7)) I end up with one err msg (" Exception: Cannot find table 0 Location: frmFunction.SetPlatypus ") If I comment out all of those, I end up with a different err msg (" Exception: FormatException Location frmFunction.getDuckbillRecord ") How could this be? Shouldn't the existence/display of such an information

need help = using class with barcode scanning

空扰寡人 提交于 2019-12-13 06:05:29
问题 i have this code from Motorola that can scann barcode in Windows-CE it works excellent, but how to make any class that all my forms can work with this scanner ? the scanner class: using System; using System.Data; using System.IO; using System.Windows.Forms; namespace MyScann { /// <summary> /// Summary description for Scanner. /// </summary> public class Scanner { public static Symbol.Barcode.Reader SymbolReader = null; public static Symbol.Barcode.ReaderData SymbolReaderData = null; public

How can I call a Web API Post method?

雨燕双飞 提交于 2019-12-13 05:31:03
问题 I need to add a Post method, and have gotten this start: private void AddDepartment() { // AccountId (int) and Name (string) are the two vals other than Id, which is auto-added on the server int onAccountOfWally = 42; string moniker = "Wild Billy Jack Black Stallion"; Cursor.Current = Cursors.WaitCursor; try { string uri = String.Format("http://platypus:28642/api/Platypi/{0}/{1}", onAccountOfWally, moniker); var webRequest = (HttpWebRequest)WebRequest.Create(uri); webRequest.Method = "POST";