Geeks With Blogs
Tex-blog Mobile and other stuff October 2007 Entries
Exposing .NET Component to COM (Ch13)
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 ITestClass { void TestCallMe(); } public class TestClass : ITestClass { public void TestCallMe() { Console.WriteLine("I was called!"); } } } // This ......

Posted On Thursday, October 18, 2007 7:20 PM

SSLChat: simple presentation of .NET 2.0 SslStream class usage (Ch12)
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... using System.Net.Security; using System.Security.Authenticat... using System.IO; using System.Threading; /* * ......

Posted On Monday, October 1, 2007 5:25 PM

Copyright © Martinez | Powered by: GeeksWithBlogs.net