compact-framework

Writing to XML in a Pocket PC

Hi again. I have a list of songs which I want to output to an external XML file using a smart device (pocket pc). String path = GetAppDir(); string filePath = path + @"\output\songs.xml"; XmlWriter xmlOut = XmlWriter.Create(filePath, settings); xmlOut.WriteStartDocument(); xmlOut.WriteStartElement("Songs"); foreach (Song songTmp in...

Bluetooth human device interface for reading digital input channels

An idea is to make Win Mobile phone become super alarm for car. Now I am searching for devices simalr to Velleman interface board, but I need device which can be connected to mobile device using bluetooth trough compact framework and C#. I need digital inputs for caching real events such as engine started or door opened. Is there a way t...

Events occuring multiple times in OpenNETCF.IO.FileSystemWatcher

Whenever I am subscribing to FileSystemWatcher notification, multiple events are occuring when I create new file or change existing file. Events are occuring in following sequence: New File Created Changed Changed Changed Changed Changed Changed Change Changed Deleted Changed Rename Renamed Delete Deleted Rename and Dele...

New FileStream already closed/disposed?

I open a FileStream with FileMode.Open and FileAccess.Read. Shortly after that I call a function to handle the file's contents. I use Invoke to make the call because the call comes from a Thread and the function has to put the results on a Form. The function accepts any kind of Stream (I call it with MemoryStreams too without a problem) ...

Why Does Type.GetType fail on the .NET Compact Framework 3.5

I am trying to de-serialize a XML string back to an object. The code does NOT have a reference to the assembly that has the class definition. We keep the fully qualified name in the XML document using XmlTextWriter.WriteProcessingInstruction, so we use that to get the type at runtime. GetType( fullyQualifiedAssemblyName, false, true );...

Compact Framework compilation problem

Hey all, I'm brand new to Compact Framework and I need to compile a small project for a Windows CE 6.0 device (on which I already installed CF 3.5). I'm using Visual Studio 2005. When creating a new project like : "Other languages -> Visual Basic -> SmartDevice -> Windows CE 5.0", I can compile a simple form, put it on my mobile device...

Locking Windows Phone with Custom Screen C#

I need to lock Windows Mobile Screen (without using default locking system) on perticular activity. I have seen on web that developers are using SHDeviceLockAndPrompt or EnableHardwareKeyboard for achieving lock. This will show default window lock screen. I need to show my screen with own checking of password with my own database. How ...

How to convert the date from the DateTimePicker control into the mm/dd/yy 12:54:30 PM format (Current date time format) ?

I am developing mobile application in C#. I am using the SQLite database to store the data. In the SQLite database I am storing the information related to the customer. In that I am storing the date with mm/dd/yy 12:54:30 PM format. Now I want to retrive the customer data based on start date & end date. I am using the following code Sho...

How to handle a gzip message received via IRequestChannel.Request

We are receiving a message from a WCF call as GZip data, but the code is expecting XML. I am working on a PDA that communicates with a WCF web service. The response from the service is SOAP format compressed using gzip. Because we're working in CF3.5 we're having to generate the service client proxy using the NetCFSvcUtil.exe utility p...

DataWedge library - Motorola MC55 barcode scanning very slow

Hello I have Motorola MC55 with DataWedge 3.2.4 installed. The issue I encounter is very slow scanning of barcodes, especially those prefixed with 'U' letter. I open the notepad and scan a barcode, text appears very slowly (even 2sec after barcode key trigger). How to tune/fix it to have more performant scanning capability? Regards Dom...

.NET 3.5 CF on Windows CE Platform Builder 6

I downloaded Platform Builder for Windows CE 6.0 and upgraded to R2 and R3. I am not able to see .NET CF 3.5 in the "Applications and Service Development" pane of the OS Design Wizard. I am able to see 2.0 only. Please help. All the information on the internet says that 3.5 should be available if R3 is installed. ...

Improve image resize perfromance with CF

Hi, I've a function to resize a bitmap which is called several time (real time processing of image) and the following code is quite slow, so my app performance is "bad". Does anyone know an other way of resizing image with CF which is faster ? Image bmp = new Bitmap(size.Width, size.Height); using (var g = Graph...

Out of Memory on Windows Mobile 5

My application is running out of memory. It runs on an MC70. It happens when I pull a lot of data down from a Web Service. I know I have a lot of data in memory, but I am wondering if there are any tricks of the trade when dealing with this kind of thing. Here is my scenario, I have a soap service that gets activity data, including i...

Detect the open url in Windows Mobile

What I want to do is have a background running app on Windows Mobile that can detect when a specific url is opened and perform some task. About the only way I can think of is to watch the cache directory and look for files specific to the site. There might be a way with IE to get the open url information but I doubt it would work the sam...

Call WCF REST Service from .NETCF 2.0 Smart Device Application

I need to Call WCF REST Service from .NETCF 2.0 Smart Device Application. There us no "Add Service Reference" option for adding reference to WCF service in .NETCF 2.0 Smart Device Application. ...

Maintain WCF Session with .NETCF 2.0 Mobile Application

I am developing Windows Mobile Application (NETCF 2.0) which needs to make connection to WCF Service (4.0) hosted on IIS. Mobile Application establishes connection with Server (containing WCF Service) for each transaction which requires authentication from database. How can I maintain WCF Sessions to authenticate Mobile Application for ...

JSON.NET for .NETCF 2.0

Anyone having JSON builer/parser for .NETCF (Compact Framework) 2.0 version? ...

Convert BMP to PCX C# Compact Framework

Has anyone dealt with converting a BMP to PCX in the .net compact framework. I need to convert a signature from a BMP to a PCX to be printed on a Zebra RW420 bluetooth printer. Any help would be greatly appreciated. Thanks! ...

Passing a C# string to an unmanaged C DLL in Windows Mobile

Hi, I've got an unmanaged c++ DLL that I need to call from a Windows Mobile C# app. I've got the C# wrapper and it works nicely in desktop. I can call the DLL functions from a C# desktop program and pass strings around with no problem. However, when I compile the lib and the wrapper for the mobile platform, I get an error in the DllIm...

Oscilloscope api for compact framework

Few days ago I where searching for human interface for mobile devices. but all bluetooth devices are pretty messy and hard to implement. Question are: "Is there open source, or free library for making Oscilloscope on WinMobile platform. As my interface is not going to be human, I will try to make some kind of buzzer which is going to ...