devxlogo

The Latest

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

8-Ball to Win: Great New Features Abound in Flash 8

he time has come, at last, for a major update of Flash?Macromedia’s flagship animation and interactive development tool. Expected in early September, Flash 8 (Macromedia has officially dropped the useless

Introducing Contract First

oday’s use of Web services in solutions doesn’t really realize the true potential of Web services. Oh yes. Web services programming is easy. Who likes those crazy angle brackets crossing

Implementing WS-Security with Java and WSS4J

eb services have evolved into a standard means for integrating organizations using differing technologies running on heterogeneous systems and frameworks. A Web service is a business-logic component designed to be

Add Line Numbers in Your VS.NET Code Window

To add line numbers in your VS.NET code window: Go to VS.NET?>Tools?>Options?>Text Editor. Choose the language of your choice and select the Line Number checkbox under Display. This will add