windows-mobile

Can anyone tell me were I am making mistake in the snippet

瘦欲@ 提交于 2019-12-10 11:28:03
问题 public partial class Form1 : Form { [DllImport("coredll.dll")] static extern int SetWindowLong(IntPtr hWnd, int nIndex, int dwNewLong); const int GWL_WNDPROC = -4; public delegate int WindProc(IntPtr hWnd, uint msg, long Wparam, long lparam); public Form1() { InitializeComponent(); WindProc SampleProc = new WindProc (SubclassWndProc); SetWindowLong(this .Handle , GWL_WNDPROC, SampleProc.Method .MethodHandle.Value.ToInt32()); } public int SubclassWndProc(IntPtr hwnd, uint msg, long Wparam,

Windows Mobile - 2 Way Call Recording (C#)

南楼画角 提交于 2019-12-10 11:15:42
问题 I need to implement 2 way (caller and receiver) call recording on Windows Mobile. I have gone through many forums and articles saying that it's hardware limitation and is not possible on all phones. I have downloaded one application from http://www.resco.net/pocketpc/audiorecorder/ which is running perfect on my phone and has 2 way recording capability. Is there any possibility of implementing same using .NET CF 2.0 (managed or unmanaged. although, managed is prefered.). EDIT: I found this

Developing for a Windows Mobile Phone, without a contract

十年热恋 提交于 2019-12-10 11:09:13
问题 Greetings! Anyway, My question, If you want to experiment developing for a Windows Mobile device, how would you go about testing your applications? I know there is a emulator but is not really ideal. Is there anyway, without paying a stupid astronomical cost, to get a development phone? Akin to what Google did with the android and I guess Apple did with the iPod touch. Ideally pay as you go so you could test connection features. Thank you in advance. 回答1: You can get WinMobile phones sim-free

Consume Web Service HTTPS (with certificate for authentication)

微笑、不失礼 提交于 2019-12-10 11:03:52
问题 I am trying to consume a Web Service HTTPS (using a certificate authentication). I have added my Web Service in my Web Reference on my project and "myCertificate.cer" has imported to Console Root\Certificates\Personal. I have an error 401: The request failed with HTTP status 401: Unauthorized. Any idea? .... using System.Security.Cryptography.X509Certificates; ... string certPath = @"C:\myCertificate.cer"; // Load the certificate into an X509Certificate object. X509Certificate cert =

Windows Mobile Emulator networking to host machine

a 夏天 提交于 2019-12-10 10:53:59
问题 I'm trying to do some Windows Mobile dev in VS2008. The WM app is making a WCF call (or trying to). The emulator and my WCF server are running on the same desktop PC. I found some details about how to configure the network card on the WM5 emulator in conjunction with Virtual PC2007. This does allow me to now surf the net view the emulator, which puts me a lot closer than I was. However, I can't get it to recognise the desktop machine itself, e.g. http://mycomputername/ and http://10.1.1.2/

how to show/hide SIP on Pocket PC

南楼画角 提交于 2019-12-10 10:25:18
问题 I have the following problem: I open the dialog, open the SIP keyboard to fill the form and then minimize the SIP. Then when I close the current dialog and return to the main dialog the SIP keyboard appears again. Does anyone know how could I show/hide SIP keyboard programatically or better what could be done to solve the described problem. Once the user minimizes the keyboard it should not appear on the screen on dialog switching. Thanks! 回答1: We use SHSipPreference to control the display of

How do I force a serial port write method to wait for the line to clear before sending its data?

為{幸葍}努か 提交于 2019-12-10 01:50:30
问题 Here's some background on what I'm trying to do: Open a serial port from a mobile device to a Bluetooth printer. Send an EPL/2 form to the Bluetooth printer, so that it understands how to treat the data it is about to receive. Once the form has been received, send some data to the printer which will be printed on label stock. Repeat step 3 as many times as necessary for each label to be printed. Step 2 only happens the first time, since the form does not need to precede each label. My issue

WebRequest with POST-parameters in .NET Compact Framework

风格不统一 提交于 2019-12-09 23:55:44
问题 I'm trying to do an HTTP POST REQUEST on .NET Compact Framework and I can't get it working. This is what I got: public static string DoPost(string url) { // initialize from variables string responseString = string.Empty; ASCIIEncoding encoding = new ASCIIEncoding(); //// UTF8Encoding encoding = new UTF8Encoding(); HttpWebResponse response; byte[] data = encoding.GetBytes("dummy"); StreamReader reader; HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(url); //do the processing

Windows UWP application lifecycle: how to prevent reload in JS/HTML/CSS app

情到浓时终转凉″ 提交于 2019-12-09 23:22:33
问题 I have a simple UWP application built in HTML/JS/CSS. It is essentially a website, that loads some data into webview and so on, nothing out of ordinary. What I struggle with is the application lifecycle and its "resuming" state, where is the application has been already running, and user opens the application again, then the whole application is re-rendered, all the html+js gets to run again which is causing basically a reload (just like via F5). How do I prevent it? Here is the very basic

Open Source Windows Mobile OCR Library [closed]

为君一笑 提交于 2019-12-09 18:22:46
问题 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 . Does anyone know of an OCR library that will run on Windows Mobile (5 or 6, but PPC2003SE would be great)? I would imagine that OCR would be native (C/C++) code, but if it was in .NET or at least had a .NET wrapper API, that would be great. 回答1: Seems like you're pretty much out of luck for free, mobile OCR. I