Geeks With Blogs
Tex-blog Mobile and other stuff
I spent today some time integrating program_options boost library, since I encountered some difficulties I would like to share my experiences. Firstly, I compile my project with Microsoft Visual Studio 2008. Project is build with UNICODE enabled and also I use stlport 5.2. program_options library requires you to compile lib files in order to use it, ......

Recently I have moved one of my projects from Visual Studio 2005 to 2008. This is a C++, WTL based dialog aplication, compiled for Pocket PC 2003 platform. Problem was when I run it in DEBUG mode in VS2008 Pocekt PC 2003 (Second edition) emulator, task bar and menu bar were switched, it looked like on old Windows CE (pre ver. 3). Under Release all was ......

I was trying recently to test some new interesting features of the new upcoming C++ standard and decided to install gcc 4.4 which supports some of them. Since I mostly work with VS2005, I had some problems with installing gcc4.4 under OpenSuse 10.2. I have not found any good (==short) tutorials on doing this, so here is a howto for compilation and installation ......

Ever wanted to wake your computer over the internet? I did, and it took me a while to find a way. It was easy to do it over the LAN, but a bit tricky to do it over WAN. My network/PC configuration is as follows: - Linksys BEFSR41 V3 router connected to ADSL modem, with static IP - one of the PCs behind router is configured to Wake On Lan, you can do ......

Here are some of the problems I have encountered after switch from OpenNETCF v1.4 to v2.2.: OpenNETCF.Windows.Forms.Sys... are now OpenNETCF.Windows.Forms.Sys... OpenNETCF.IO.FileEx is no longer present, its functionality is provided by System.IO.File. OpenNETCF.IO.StorageCard.Ge... is no longer present, use OpenNETCF.IO.DriveInfo.GetD... ......

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, ......

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 ......

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); ......

If you have used ListBoxEx control from OpenNETCF.org SDF1.4 library, on VGA device then you know that it looks really bad. One thing is that scrollbar is too thin, last list element does not always repaint and some borders are too thin. This is all because this control is not VGA screen capable. To make it all work properly, you need to modify source ......

Short sample for chapter 13, lesson 2. It shows how to write C# class library and export it to COM dll, which later is used by C++ test project. All is compiled from command line, so use Visual Studio 2005 Command Prompt. // This is the contents of LibClass1.cs, a library we want to expose to COM using System; namespace ClassLibrary { public interface ......

Below you will find a sample solution for Practice 1 task in first objective of Chapter 12 review. This code is based on SslStream sample code that can be found in this class documentation. //#define USE_FILE_BASED_CERTIFICATE using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Security.Cryptograph... ......

Cryptography namespace is really very powerfull, as a test application I wrote a simple MD5 check utility that computes md5 checksum for file and compares it with md5 file that was provided with downloaded file. Because most of the files that are being checked are quite huge - I added simple user feedback as a dots showing in console. using System; ......

Below is a sample class showing how to encrypt and decrypt text when we have only password. It uses symmetric key algorithm. using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.IO; namespace EncryptionTester { class RijndaelWrapper { // Retruns salt from password. private static byte[] ......

Charter 12 lesson 2 gives in its Lab a sample code that will not work on everyones computer. The problem is with the Guest account name that is in English, which will not work on systems in different languages, like mine for example. Below code: DirectorySecurity ds = new DirectorySecurity(); string gname = "Guest"; ds.AddAccessRule(new FileSystemAccessRule(gname, ......

For a long time I have been a big fun of MFC template collections like CArray. The main reason was that they were easy to use and what’s most important quite easy to read in debugger what’s inside them, yet in many places I use mostly STL to take benefit of various collection types and available algorithms. Debugging with STL never was easy, VS 2005 ......

Copyright © Martinez | Powered by: GeeksWithBlogs.net