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, September 07, 2008

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
Search:
What's New - What's Hot
Listings for AddIns AddIns (90)
Listings for Attributes Attributes (6)
Listings for Class Libraries Class Libraries (76)
Listings for Collection Collection (9)
Listings for Compiler Compiler (16)
Listings for Component Component (45)
Listings for Controls Controls (214)
Listings for DataBase DataBase (117)
Listings for Debugging Debugging (21)
Listings for Email Email (3)
Listings for Error Handling Error Handling (8)
Listings for Event Handling Event Handling (13)
Listings for Exception Handling Exception Handling (28)
Listings for FAQ FAQ (66)
Listings for File Management File Management (47)
Listings for Graphics&Chart Graphics&Chart (89)
Listings for Language Reference Language Reference (90)
Listings for Miscellaneous Miscellaneous (259)
Listings for OOP OOP (277)
Listings for Performance/Optimization Performance/Optimization (124)
Listings for PlugIns PlugIns (13)
Listings for Regular Expression Regular Expression (15)
Listings for Sample Programs Sample Programs (382)
Listings for Security Security (38)
Listings for Socket Programming Socket Programming (12)
Listings for Threading Threading (49)
Listings for Tips & Tricks Tips & Tricks (201)
Listings for Type Casting Type Casting (6)
Listings for Web Services Web Services (87)
Listings for Windows Form Windows Form (104)
Listings for XML XML (70)
 


Enum Declarations, Template Function Specialization        
Total Hits: 1  |  Today: 1 Author: Paul DiLascia       Rating:  
Read Reviews | Write Review |   Your Rating: 

I'm happy to explain how I wrote DumpEnum and I'll even give you the code. In the process I'll answer the second question, too. But first let me explain for other readers just what DumpEnum does. One of the things I had to do in my April 2005 article was write a C++ enum to exactly match the .NET Framework type RegexOptions. RegexOptions is an enumerated (enum) type you can use with methods like Regex::Match and Replace to control matching. For example, you can call Regex::Match with RegexOption...

Bare bones SourceSafe journal monitor        
Total Hits: 0  |  Today: 0 Author: Muaddubby       Rating:  
Read Reviews | Write Review |   Your Rating: 

One of the things I’ve looked for for a long time was a way to be notified when changes occur to a SourceSafe project. I’ve worked in several team projects where changes by one member could make or break a build, or where changes necessitated a "get latest" by everyone else, but there was no automatic way of notifying people. And when things are not automated, manual procedures start popping up all over the place and next thing you know you have batch files calling batch files, VB scripts callin...

ProSysLib: Dissecting The Process        
Total Hits: 0  |  Today: 0 Author: Vitaly Tomilov       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article continues the series about the Professional System Library project as it develops further on. This time we go over the features of the library that allow us to access various information about the current process in an easy way via namespace System-Process of the ProSysLib component. For those of you who read about ProSysLib project for the first time it is much recommended to get familiar with the project and its objectives from the ProSysLib Introduction Article. The present artic...

Tool for converting VC++2005 project to linux makefile        
Total Hits: 0  |  Today: 0 Author: Maria Adamsky       Rating:  
Read Reviews | Write Review |   Your Rating: 

This tool automatically converts Visual C++ 8.0 or 9.0 projects to Linux makefile. Important note, there is no loss during the conversion: source code and .sln/.vcproj files are left unchanged. The tool implemented in C# VS 2005. * Your application is cross-platform based.
* Now you are facing a decision to migrate from Visual C++ 6 to 8 or 9.
This both reasons force you to create makefile manually and each small change in your project requires hard physical labor in makefile maint...

CBitmapEx - Free C++ Bitmap Manipulation Class        
Total Hits: 0  |  Today: 0 Author: darkoman       Rating:  
Read Reviews | Write Review |   Your Rating: 

This article is about the 'simple' C++ bitmap manipulation class called CBitmapEx. Many times I have been faced with the fact that the MFC library does not offer anything more to read the bitmap files, but the CBitmap class with very limited features. I needed features like scale, rotate, apply different filters, etc. but they were just not there. Another class, the CDC class (device context), offered some more options like stretching, transparency and alpha blending, but it was just too slow (p...

Generic Programming: Template Specialization        
Total Hits: 1  |  Today: 0 Author: Stanley B. Lippman       Rating:  
Read Reviews | Write Review |   Your Rating: 

As I discussed in my last column, a param-eterized type that does more than simple storage and retrieval is constrained as to the acceptable types that may be safely bound to it (see Pure C++: CLR Generics Versus C++ Templates. Using generics, these constraints are made explicit through the where clause. In the C++/CLI template facility, you can often work around these constraints by specializing a function or class template—either individual member functions or an entire class. For the sake of ...

Copy Constructors, Assignment Operators, and More        
Total Hits: 1  |  Today: 1 Author: Paul DiLascia       Rating:  
Read Reviews | Write Review |   Your Rating: 

I have a simple C++ problem. I want my copy constructor and assignment operator to do the same thing. Can you tell me the best way to accomplish this? This code works fine for many classes, but there's more here than meets the eye. In particular, what happens if your class contains instances of other classes as members? To find out, I wrote the test program in Figure 1. It has a main class, CMainClass, which contains an instance of another class, CMember. Both classes have a copy constructor and...

Writing, Loading, and Accessing Plug-Ins        
Total Hits: 0  |  Today: 0 Author: Paul DiLascia       Rating:  
Read Reviews | Write Review |   Your Rating: 

In the January 2005 issue of MSDN Magazine you had an example of writing a mixed-mode application. Is it possible to dynamically load a .NET class/DLL and call those functions? Let's say I had an application that was a native C++ app and I wanted to allow users to write a plug-in for the C++ application in .NET. It would be like a LoadLibrary for .NET DLLs....

Invoking Generic or Function Templates        
Total Hits: 0  |  Today: 0 Author: Stanley B. Lippman       Rating:  
Read Reviews | Write Review |   Your Rating: 

As I promised last time, in this month's column I'll walk through the process of defining and invoking a generic or template function under C++\CLI. A function template or a generic function begins with the template or generic keyword followed by its parameter list. Unlike a template function, a generic function may then optionally specify a constraint clause. This is followed with either the prototype declaration or full definition of the function. These functions can either be independent func...

Disabling Print Screen, Calling Derived Destructors, and More        
Total Hits: 0  |  Today: 0 Author: Paul DiLascia       Rating:  
Read Reviews | Write Review |   Your Rating: 

I'm building an application that displays proprietary graphics. Is there some way I can disable the Print Screen function to prevent users from copying images to the clipboard? There is a way to disable Print Screen, but I should warn you that there's no way to prevent another application from grabbing the pixels from your window. Many third-party programs are available that can capture the screen, and it's also easy to write such a program. All you have to do to capture the pixels on the screen...

Using V8 - the Google's Chrome Javascript Virtual Machine        
Total Hits: 0  |  Today: 0 Author: GabrielWF       Rating:  
Read Reviews | Write Review |   Your Rating: 

Who never wandered how virtual machines work? But better than creating your own virtual machine, what if you can use one done by a big company focusing on improove the speed of the VM? In this article I'll introduce how to use in your application the V8 which is Google's open source JavaScript engine which is inside Chrome - the Google’s new browser. This code is using the v8 as an embedded library to provide javascript. To get the source of the library and more information, go to v8 developer p...

Reflecting on Generic Types        
Total Hits: 0  |  Today: 0 Author: Stanley B. Lippman       Rating:  
Read Reviews | Write Review |   Your Rating: 

A funny thing happened to templates on their way to the common language runtime (CLR)—they lost their {type} identity. This is analogous to what happens with macros under native programs. Just as the C/C++ compilers have no awareness of macro preprocessor expansions, the CLR has no awareness of template instantiations. In both cases, the expansions are baked into the data stream being processed, and all unique {type} identity is lost. (This has some design ramifications that I will address in a ...


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