Search   Articles   Dev Forums   Personalize   Favorites   Member Login   ASP.Net Hosting
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Sunday, November 23, 2008

Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 
FREE 12 month online training for ASP.NET & MS Expression Studio and a Free copy of MS Expression Web with Windows Server Purchase

Home > Search > Articles & Samples > Visual C++ .NET > OOP
Search:
What's New - What's Hot


Microsoft content management page crawler        
Total Hits: 9  |  Today: 0 Author: shakil.inbox       Rating:  
Read Reviews | Write Review |   Your Rating: 

This Crawl Results user control provides a start page for a search engine to crawl a Content Management Server (MCMS) web site. For search purposes, it is recommended to hide a site's navigation menus when the browser user agent is detected to be a robot. This prevents words in the navigation menus from appearing in every page of the search result when a user searches for those words. With the navigation menus turned off, the search crawler will have no way to crawl through all the pages. This u...

FxEngine Plugin to Stream Video Data from a Webcam        
Total Hits: 9  |  Today: 0 Author: m_sylvain       Rating:  
Read Reviews | Write Review |   Your Rating: 

The purpose of this article is to help to work on video stream using a simple plugin approach. Instead of using a full DShow architecture, I use the FxEngine Framework from SMProcess. My approach was the following: create a video source plugin using DShow's components and process video stream with one or several processing plugins using C++....

Portable Executable (P.E.) Code Injection: Injecting an Entire C Compiled Application        
Total Hits: 22  |  Today: 1 Author: Ciro Sisman Pereira       Rating:  
Read Reviews | Write Review |   Your Rating: 

There are many articles explaining how to inject assembly code into a portable executable (host application). Most of them are very good. However, they seem to require you have high skills in assembly programming. Besides, most of the times, the injected code does nothing more than show a message box.

In this article that I want to demonstrate, you don't need to be an assembly expert to inject a complex routine in a host program. In fact, you need basic knowledge about certain concepts to...

A policy based reference counting implementation for compound objects        
Total Hits: 19  |  Today: 1 Author: emilio_grv       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article is the natural evolution of the previous "The safest smart pointer of the East" and "Comparing different coding approach", always here on CodeProject.

The subject is one of the most treated in many OOP and Generic code books, with a variety of solutions. But - in my experience - I often found myself in trouble with certain "too zealot" implementations.

Many of you probably know libraries like Boost or Loki....

A simple but effective windows socket program        
Total Hits: 27  |  Today: 0 Author: engulfed111       Rating:  
Read Reviews | Write Review |   Your Rating: 

The need to receive commands via the internet from a box running under a unix platform and send responses back to it required that I create a socket server application. I needed a socket class and every tutorial or sample code I found either did not make a robust enough socket class or made the code hard to use(by making it too specific to their use). So I decide to come up with my own code. It allows you to have an over laying code control the socket_server. In a sense that you have an executiv...

Programmatically changing windows display settings        
Total Hits: 24  |  Today: 1 Author: Ludvik Jerabek       Rating:  
Read Reviews | Write Review |   Your Rating: 

Changing Windows Display Settings in C++. I created a CVidAdapter class that allows you to change display settings without having to know much about the underlying APIs. This class comes in handy when you are working on a project that required you to set system resolution or font size as part of a build process. You can also use it in scripts once you have compiled an executable. The class will give you all the physical adapters on the system and name of the adapters aswell as the virtual. You c...

Stopping and starting services automatically during builds        
Total Hits: 16  |  Today: 0 Author: mav.northwind       Rating:  
Read Reviews | Write Review |   Your Rating: 

One of the most basic facts when developing applications under Windows is that as long as a program is running, its DLLs and executable cannot be overwritten.

Probably you've experienced this behaviour. You want to replace a DLL with an updated version and Windows tells you "The process cannot access the file because it is being used by another process". A look at the taskbar shows that in fact the application the DLL belongs to is still running.

While developing a desktop applicat...

Virtual Functions and their implementations        
Total Hits: 17  |  Today: 0 Author: _AnShUmAn_       Rating:  
Read Reviews | Write Review |   Your Rating: 

Since I wrote my first article on codeproject, I was eager to post the second one but, I didn’t have the time to write down my thoughts and ideas. Now that I have an opportunity to write I am jotting down my ideas. The topic that I am going to discuss is at the beginner level but is always puzzling for an amateur developer. ( Virtual Functions) I would like to have comments and ideas on how I could improve on this article and I would be highly thankful if you can point out any mistakes and infor...

An Insight to References in C++        
Total Hits: 19  |  Today: 0 Author: Gatik G       Rating:  
Read Reviews | Write Review |   Your Rating: 

I choose to write about the references in C++ because I feel most of the people are having misconception about the references and I have got this feeling because I took many C++ interviews and I seldom get correct answers about references in C++.

What is meant by references in C++? A reference is generally thought of an aliasing of the variable it refers to. I hate the definition of references being and Alias of a variable in C++. In this article I will try to explain that there is nothin...

A clone of the Jawbreaker game in less than 128 lines of code.        
Total Hits: 22  |  Today: 0 Author: Ronounours       Rating:  
Read Reviews | Write Review |   Your Rating: 

I propose here a C++ version of the Jawbreaker game that fits in less than 128 lines of C++ code. This is possible thanks to the use of the CImg Library, a small and very useful C++ library dedicated to image processing operations.
In our case, we just use some functions of the CImg Library to handle images, display animated graphics in a window, and retrieve user events (mouse and keyboard).
Note that CImg is multi-plateform, so the proposed jawbreaker code will compile on Linux,BSD or Ma...

LINT: Large Integer Object Library        
Total Hits: 25  |  Today: 0 Author: Jeremy A. Wilson       Rating:  
Read Reviews | Write Review |   Your Rating: 

Lint is a signed large integer data type class library that supports all mathematical operators available to other intrinsic integer data types. The precision is not arbitrary as in other available libraries. Rather, the number of bits that make up a lint variable is dependent on the value of a #define directive declared in the header file....

CGetOpt - a commandline parameter parsing class        
Total Hits: 17  |  Today: 1 Author: Geert van Horrik       Rating:  
Read Reviews | Write Review |   Your Rating: 

I needed a simple (but working) parameter parsing method. After searching for a long time, nothing came out. This doesn't mean there are no useful classes, but none of them fitted my needs. This class is able to parse all kind of parameters....

Tiny Singleton helper class        
Total Hits: 16  |  Today: 1 Author: Cho, Kyung-min       Rating:  
Read Reviews | Write Review |   Your Rating: 

Sometimes we have to code with 'singleton'. If you don't know what Singleton is, you can read about it in many Design Pattern books. Singleton principle is really simple.

As you know, if you use reference pointer for singleton object, then you must delete it when program terminates. But it will be good because it does 'late instance'....

C++ Object Introspection – (Enumerating Class Attributes)        
Total Hits: 19  |  Today: 1 Author: strtdusty       Rating:  
Read Reviews | Write Review |   Your Rating: 

You've probably worked with programming languages that allowed you to inspect an object to determine what attributes make up the object at runtime (FoxPro, Perl etc). This feature is very handy if you need to write generic serialization routines. If you are programming in C++ then you probably also know that this type of introspection is missing....

New Class (C++) Wizard with namespaces selection        
Total Hits: 12  |  Today: 1 Author: Gladstone       Rating:  
Read Reviews | Write Review |   Your Rating: 

I'm projecting a class framework (so far I have tried only if some ideas I'd got were feasible) which uses namespaces. Every time I needed to add a class inside a namespace, I have to select "New Item" -> "New class" and edit the class file manually at the beginning and at the end of the file to add "namespace NamespaceName {" and then "}". It was annoying doing it manually so I decided to edit the original wizard to include the namespace field (and a select-like choice for base class selection)...

Dynamic Textbox        
Total Hits: 40  |  Today: 0 Author: Hungry Mind       Rating:  
Read Reviews | Write Review |   Your Rating: 

In one of my projects, I had to include TextBoxes which allow only numeric characters, string characters or both without special characters. I did that, but I had to write functions for each TextBox or make a class and call these functions for the TextBox validation. So, I came up an idea to develop a multipurpose TextBox which can be set to allow only string characters or numeric characters, or mixed string and numeric characters, where there will be no need to write or call functions to do the...

Multi Dimensional Arrays using Template Meta Programming        
Total Hits: 11  |  Today: 0 Author: Mohammed Hossny       Rating:  
Read Reviews | Write Review |   Your Rating: 

Multi-dimensional arrays provide a nice mathematical data structure for mathematical and soft computing projects. Tensor is usually the data structure used to store data in multi-dimensional arrays. Helper classes helps in design subscripting operators to select rows, cols, and plates. Helper classes may be implemented by adding constant template arguments describing the state of the array, or sub-array. Refer to "Tensor templates", " 2D Matrix Container with [][] indexing", and "Template-Based ...

ObjectIsDynamic        
Total Hits: 11  |  Today: 1 Author: Mauro Leggieri       Rating:  
Read Reviews | Write Review |   Your Rating: 

I have seen too many people trying to determine if an object is allocated on the heap or not. It can help to create a garbage collection or find if an object with a reference counter should automatically call the delete operator or not when its counter reaches zero....

A non-inheritable class        
Total Hits: 22  |  Today: 0 Author: Zeeshan Amjad       Rating:  
Read Reviews | Write Review |   Your Rating: 

It is a common question why we shouldn’t inherit classes from STL classes. The answer of this question is simple. Big three rule [CLI95]. In other words you should have virtual destructor in a class if you want to make it a base class. However there aren’t any class in STL which define virtual destructor. Even if you try to inherit a class from STL class the compiler doesn’t complain about it, but there is a high chance of resource leak in the program. It makes programmers life easy if the compi...

A Lightweight Implementation of UML Statecharts in C++        
Total Hits: 14  |  Today: 0 Author: GPSchultz       Rating:  
Read Reviews | Write Review |   Your Rating: 

This statechart "engine" (implemented as a C++ template class) implements the most commonly used aspects of UML statecharts. All you need to do is define an array of states and implement event checking and handling methods. Then call the engine when an event occurs. The engine calls your event checking and handling methods in the correct order to figure out what event happened, and tracks the current state....


1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  Next >> 


DevASP.Net - Disclaimer - Privacy
Copyright © 2008 DevASP.net