Geeks With Blogs
Tex-blog Mobile and other stuff February 2008 Entries
Some hints on switching from OpenNETCF v1.4 to v2.2
Here are some of the problems I have encountered after switch from OpenNETCF v1.4 to v2.2.:

OpenNETCF.Windows.Forms.SystemInformationEx are now OpenNETCF.Windows.Forms.SystemInformation2.

OpenNETCF.IO.FileEx is no longer present, its functionality is provided by System.IO.File.

OpenNETCF.IO.StorageCard.GetStorageCards(); is no longer present, use OpenNETCF.IO.DriveInfo.GetDrives() instead.

Posted On Thursday, February 21, 2008 3:39 PM

Fix: Symmetric encryption wrapper for .NET 2.0 Compact Framework
Im my post: .NET Symmetric encryption sample wrapper (Ch12), I have presented a simple wrapper for encrypting data in .NET 2.0 framework. The code was for full version of library, but it can be quite easily rewritten to work also on CF - Compact Framework to be used on mobile devices. One of the missing classes no present in CF is Rfc2898DeriveBytes, you can use Smart Device Framework from OpenNETCF to substitute it as follows: using OpenNETCF.Security.Cryptogr... // Returns salt from password. ......

Posted On Thursday, February 7, 2008 3:35 AM

CeRun - run application on Pocket PC from desktop PC
Recently I needed to execute an application on my Windows CE device from my laptop, I spent some time on google searching for some program to do that, but I have not found anything that worked for me. Because such aplication is not a big effort, I decided to write it and share with community. Below is source code for it and link to binary. #include <windows.h> #include <rapi.h> #include <stdio.h> #pragma comment(lib, "rapi.lib") int main(int argc, char* argv[]) { if ( argc == 1 ......

Posted On Wednesday, February 6, 2008 6:47 PM

TimeSpan custom formatter - .NET CF 2.0
I was looking for some time a method for formatting TimeSpan in a same way as DateTime, but there is no easy way to do that, and the methods found on google are not applicable to every situation. One of the more useful methods is to convert TimeSpan to DateTime and format it this way: TimeSpan ts = TimeSpan.FromMinutes(20); DateTime dt = DateTime.MinValue.Add(ts); Console.WriteLine(dt.ToStri... on output it will print: "01.00.20" Which is not what someone might want because it shows ......

Posted On Monday, February 4, 2008 5:47 PM

Copyright © Martinez | Powered by: