CProgrammingTrends Home PageAbout iEntryArticle ArchiveNewsWebProWorld ForumsJaydeiEntryContactAdvertiseDownloadsiEntry
08.10.04

MDI (Multiple Document Interface)
MDI (Multiple Document Interface) is nothing but a way of displaying windows form where there is at least one parent and many child windows e.g. word Excel PowerPoint kind of windows where each document , sheet or slide act as a child under the parent container window.

SDI (Single document Interface) examples are Windows Explorer, Internet explorer, Notepad etc...where only one window acts as an interface.
Read The Whole Article

Binary Trees: Part 1
The binary tree is a fundamental data structure used in computer science. The binary tree is a useful data structure for rapidly storing sorted data and rapidly retrieving stored data. A binary tree is composed of parent nodes, or leaves, each of which stores data and also links to up to two other child nodes (leaves) which can be visualized spatially as below the first node with one placed to the left and with one placed to the right. It is the relationship between the leaves linked to and the linking leaf, also known as the parent node, which makes the binary tree such an efficient data structure. It is the leaf on the left which has a lesser key value (ie, the value used to search for a leaf in the tree), and it is the leaf on the right which has an equal or greater key value. As a result, the leaves on the farthest left of the tree have the lowest values, whereas the leaves on the right of the tree have the greatest values. More importantly, as each leaf connects to two other leaves, it is the beginning of a new, smaller, binary tree. Due to this nature, it is possible to easily access and insert data in a binary tree using search and insert functions recursively called on successive leaves.
The typical graphical representation of a binary tree is essentially that of an upside down tree. It begins with a root node, which contains the original key value. The root node has two child nodes; each child node might have its own child nodes. Ideally, the tree would be structured so that it is a perfectly balanced tree, with each node having the same number of child nodes to its left and to its right. A perfectly balanced tree allows for the fastest average insertion of data or retrieval of data. The worst case scenario is a tree in which each node only has one child node, so it becomes as if it were a linked list in terms of speed. The typical representation of a binary tree looks like the following:
Read The Whole Article

SOAP client for C++
While creating web service and consuming it are very easy and intuitive in the .NET world, sometimes we still need to handle it in legacy systems. Several days ago, I faced a problem to call a web service in my old VC6 project. I Googled the web and realized that MS SOAP SDK will be the solution. Being familiar with C# language, going back to C++ is kind of frustrating, especially when handling COM interfaces. So I decided to write a helper class to ease the work of calling a web service, which is attached here.

The base class

The base class is called SoapClientBase, which is for inheritance only, implements most tasks to talk with the SOAP SDK. I will rather not talk a lot about the code of the base class. Instead, I'll give the steps about how to write an inherited class. The code of the base class is short, take a look at it for yourself if you want.
Read The Whole Article


[ memberwiseclone() function ]
Like finalize() method, we also come to see memberwiseclone() method in almost every class ,as protected instance methods . It is inherited from Object class, which is the mother class of .NET classes.

By definition, memberwiseclone() method "creates a shallow copy of the current Object."

A shallow copy of an Object is a copy of the Object only. If the Object contains references to other objects, the shallow copy will not create copies of the referred objects. It will refer to the original objects instead. On the other hand, a deep copy of an object creates a copy of the object and a copy of everything directly or indirectly referenced by that object.
Read The Whole Article

An Introduction to Programming Using Microsoft Visual C# 2005 Express Edition
This article introduces programming with the C# language using the Microsoft Visual C# 2005 Express Edition Integrated Development Environment (IDE). Using various example projects, readers will be exposed to several aspects of the C# programming language and key concepts of the .NET platform. (23 printed pages)

Note: This article assumes you're a hobbyist, student, or programming-minded individual interested in exploring the C# programming language and the .NET platform using Visual C# 2005 Express Edition. No prior exposure to C# is assumed or expected, however, some previous programming experience will be helpful.
Read The Whole Article

Generics in C#
Generics are used to help make the code in the software components much more reusable. They are a type of data structure that contains code that remains the same. The data type of the parameters can change with each use.The usage within the data structure adapts to the different data type of the passed variables.

Each time the generic is used, it can be customized for different data types without needing to rewrite any of the internal code. Generics permit classes, structs, interfaces, delegates, and methods to be parameterized by the types of data they store and manipulate.
Read The Whole Article




Read this Newsletter at: http://www.cprogrammingtrends.com/2004/0810.html
Free Newsletters
Part of the iEntry Network
over 4 million subscribers
CProg.Trends
SecurityConfig
ITProNews


Send me relevant info on products and services.



 

 

From the Forum:
Internet Database Systems
hi everyone!

could anyone tell me more about the Internet Database Systems? with some related issues like: 1) centralized system vs distributed system
2) concurrency control
3) recovery
4) security
5) data reliability/integrity

I'm very new to database, so i need to know more about internet database. any suggestion or useful url? ...
Read the Post

 

-- CProgrammingTrends is an iEntry, Inc. publication --
iEntry, Inc. 880 Corporate Drive, Lexington, KY 40503
2004 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal


archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



WinXPDigest.com DevNewz.com