The Latest

DevX

Counting Bits Efficiently

Sometimes you need to know the number of bits set in a word. I often see code to count the number set bits written as a loop, processing one bit

DevX

Using the Template Argument as the Superclass

When you need to add the same member function to several classes, you can use a template class, derived from its template argument. template class T : public P {public:

DevX

Finding the Time in Different Zones

These days, many enterprises exchange data using a request/response approach. This data typically contains the date and time information regarding when a request was generated/received or a response generated/received. If

DevX

Customizing Column Name and Width

SQL*Plus uses column names as default column headings while displaying query results. You can customize your own column heading and width with the help of following commands. To assign a

DevX

Improving Large Strings’ Performance

Certain applications make use of very long strings. For example, a single string may contain generated HTML pages, a chapter of a book, a textual database and so on. Usually,

DevX

The “Fail-Fast” Mechanism in Java Containers

Java containers have a mechanism to prevent more than one process from modifying the contents of a container. The problem occurs if you Related Posts SQL Not Equal To OperatorIRS

DevX

Calling a Stored Procedure from an ASP Page

Below is an example of passing in parameters when calling a stored procedure from an ASP page. Related Posts Kubernetes Logging: What You Need to KnowThe Importance of Red Teaming

DevX

Exception Restrictions when Overriding

When you extend a class and override a method, Java insists that the new method cannot be declared as throwing checked exceptions of classes other than those that were declared

DevX

Using Database Transactions with JDBC

When a connection is created using JDBC, by default it is in auto-commit mode. This means that each SQL statement is treated as a transaction and will be automatically committed

DevX

Use Shell Functions in the Browser Control

When you Related Posts Is Your Fundraising Campaign Stalling? Here’s the Game-Changing Advice You NeedWhy XML Parsers Often Are Not Very UsefulSimple Annotation in JavaLegal Management Software for Aviation Law:

DevX

Convert a Short Filename Into a Long Filename

You can use the Dir( ) function to return a long filename, but the return does not include path information. By parsing a given short path/filename into its constituent directories,

DevX

How to Unhook Subclassing when Windows is Ready

Don Related Posts Nvidia’s significant growth driven by AI and GPU demandThe future of healthcare: Merging tech and biologyUsing the SQL LCASE FunctionCalculate the Distance Between Two Coordinates in C#Preventing

DevX

Dump Resource Strings to Text File

The Resource Editor add-in is useful for adding resource file text entries, but it doesn Related Posts Easy One-Step Process to Rename a Table in MySQLAdd Log4j2 in a Spring

DevX

Short-Circuit Your Code

Be aware that VB doesn Related Posts How To Transfer Data From Android To iPhoneAI-Powered XQ-58A Valkyrie Airplane Takes FlightApple’s Newest Changes: Don’t Miss Out!Understanding CopyOnWriteArrayListTop 5 Strategies to Combat

DevX

ADOLink Activex Control

ADOLink is an ActiveX control that you can connect to an ADO MSData control that lets you store a link for external files on the database and open it, including

DevX

Don’t let binary compatibility beat you

When you decide to release a new version of an MTS/COM+ component you should take care of its compatibility with the previous version. There are three types of changes you

DevX

Misconceptions on variables and binding

Consider this line of code: Dim x as Project1.Class1 Many developers think that we were declaring x as a “Project1.Class1” object. This is wrong. All object variables in VB are

DevX

Never use New to create MTS/COM+ objects

A common question among VB developers is: Why is it dangerous the use of the New keyword in VB to create COM objects registered under MTS/COM+? The New keyword is

DevX

Don’t store object variables in the SPM

Some MTS/COM+ newbies wonder whether it is legal to store object variables in the SPM. No, you can’t!! the SPM is unaware of Apartment marshaling issues. If you ask the

DevX

Obtain a Regional Decimal Character without an API

Use this function to read a number decimal symbol from regional settings: Sub Form_Load()Dim DecS As StringDecS = ReadDecimalSymbol()End SubFunction ReadDecimalSymbol() As StringReadDecimalSymbol = Mid$(CStr(1.1), 2, 1)End Function Related Posts

DevX

Authenticate Component Usage

Bundling functionality and program logic into an ActiveX DLL is an excellent form of encapsulation. But even when you expose functionality to your client application, you don Related Posts Gartner

DevX

How to Generate C++ Class Template Definitions

++ class template header and implementation (skeleton) definitions are often hard to read, let alone to write. Especially when defining template classes that are derived from base template classes, I