devxlogo

The Latest

What’s New in .NET 2.0 for Assemblies and Versioning?

he third release of the .NET Framework (version 2.0) introduces many changes and innovations not just in the application frameworks, but also in the essential mechanics of assemblies themselves. Microsoft

Accessing PostgreSQL with Python and Psycopg2

s an open source database, PostgreSQL has one of the largest libraries of Application Programmable Interfaces (APIs) available, letting you access it easily from various languages. One such language is

Using the Domain Objects Persistence Pattern in .NET

hen developing object-oriented applications that use relational databases, creating a domain object design that’s consistent with the database design makes applications easier to understand, because domain objects typically represent real-life

The ‘final’ class in C++

Suppose you need to prevent the derivation of a class?like in the final classes of Java. Simply make the constructor of the class private. Here’s an example: class final{private: final(){}

Structs with Care: Boxing

Consider an employee service, say in an SOA-based implementation, which exposes the following method: Employee getEmployeeInfo(int employeeId) Looking at this signature, Employee can be defined as struct because it would

Text Scrolling on a Click Event

This code scrolls the text left and right on the click event of < , >: Related Posts How To Start A Hotshot Business in 2024Novel CRISPR Systems Enhance Gene-Editing

Check for the Existence of a Stored Procedure Using T-SQL

To check for the existence of a stored procedure, select the name from sysobjects where name=’mystoredprocedure’ and xtype=’p’. Related Posts Metroid Prime 4: Beyond, gameplay revealedWhat Is A Stablecoin? 3

Call a Private Method of a Class

Use this polymorphic technique to cheat the compiler and expose private information: See the code below.class A{public: virtual void f2() { printf(“in A::f2 “); }};class B: public A{private: void f2(int

Release Virtual Machine Resources

Failing to release virtual machine resources results in a ‘memory leak.’ The following example is missing the ReleaseIntArrayElements call: jint * tempArray = env->GetIntArrayElements(jiArray, false);if (tempArray ){ return;}if (…) //

Make Data Islands Work in All Browsers

obust support for Web standards is now the norm rather than the exception. If you develop applications for a purely Microsoft-centric environment then you probably haven’t had to care much

Porting Visual C++ Code to Visual Studio 2005

our months ago, Microsoft publicized a list of features that could cause existing Visual C++ apps to break when migrated to Visual Studio 2005. Many of these features are core

Empower Your Printing with Custom Print Processors

n this world of emerging technologies and modern, ultra-small, and super-capable electronic devices, there is still a place of honor for printers. People haven’t completely switched to soft copies. There

Using the XMLHttpRequest Object and AJAX to Spy On You

very nerd loves the XMLHttpRequest. It supplies the functionality of which Web programmers’ dreams are made. Web applications start behaving like desktop applications. Things work as they’re “supposed to,” freeing