The Latest

DevX - Software Development Resource

Generate Normal Distributions of Random Numbers

Visual Basic Related Posts Enhancing Global Education: The Impact of AI on Video TranslationRevolutionizing Energy: SunZia and Clean Power AllianceNYC uses AI to detect subway fare evasionHow To Backup Android

DevX - Software Development Resource

Add Incremental Search to a Combo Box

As the user types into a drop-down combo box, he or she passes keystrokes to the ComboIncrementalSearch routine, which then searches the combo box Related Posts The Role of Breach

DevX - Software Development Resource

Open Your VB Projects With a Clean Slate

If you Related Posts Getting the Current Date and Time in MySQLHow to define an auto-incremented identifier via JPA annotationsKey Steps to Ensure Quality Phone Repairs Kaynes and Telangana Unite to

DevX - Software Development Resource

Customize the IDE Toolbar

The VB Integrated Development Environment (IDE) contains many toolbars and menu functions, and the functions you normally use are usually on different toolbars and menus, so most programmers have several

DevX - Software Development Resource

Force the Short-Circuit

To optimize the If construct, separating testing conditions (“And” operator or “Or” operator) in different expressions can improve the performance. For example, don Related Posts Using the DATALENGTH SQL FunctionThe

DevX - Software Development Resource

Reading Binary Data from an ifstream

To read a binary value from an input file stream (ifstream) object, use the read() member function. read() takes two parameters: char * and long, which hold the address of

DevX - Software Development Resource

Parenthesize Macro Arguments

It’s a good idea to parenthesize every macro argument. For example: #define MAX(x,y) (x)>(y)?(x):(y) The parentheses ensure that the macro is evaluated correctly, even if the user passes complex expressions

DevX - Software Development Resource

Serializing a Polymorphic Object

A polymorphic object has one or more virtual functions. When you serialize such an object to a file so that it can be reconstituted later, the deserialization might rewrite its

DevX - Software Development Resource

Writing Binary Data to an ofstream

To write the binary value of a variable to an output file stream (ofstream) object, use the write() member function. write() takes two parameters: const char * and long, which

DevX - Software Development Resource

CUDL – A class to create UDL files

‘ A class that creates UDL files for use as ADO Data Sources.’ Universal Data link files are handy for select data sources but there’ are lack of a way

DevX - Software Development Resource

Fill a Combo with Available Drive Letters

To create a drop-down control with a list of used or unused drive letters, place two ComboBox controls on a form, named Combo1 and Combo2, and include this code to

DevX - Software Development Resource

Restore Properties as They Were

If you don Related Posts Achieving FlowJames Webb telescope uncovers early black holesHybrid Cloud Computing Leads to IoT, Cognitive Computing, Says IBM ReportTurn Off the Index Maintenance of DataTable when

DevX - Software Development Resource

Perform String “Math” With Leading Zeroes

In an introduction to VB Related Posts Home Depot bolsters B2B with $18.3B acquisitionMedical AI Struggles with New PatientsBitcoin miners diversify into AI and HPCEnhancing Web Security with Website Virus

DevX - Software Development Resource

Don’t Create a Recordset Unless It’s Required

When running action queries make sure you add the adExecuteNoRecords option, so that a recordset is not created. You can also use this technique in lookup situations when returning just

DevX - Software Development Resource

Float Buttons Over Tab Panels

When using the SSTab control to build a tabbed dialog, I often find the design more pleasing when the OK/Cancel buttons or other controls appear on every tab. It Related

DevX - Software Development Resource

Create Folders Recursively if They Do Not Exist

This script can be used in ASP or VBScript or Visual Basic. It is an easy way to create a folder tree. Sub CreateFolderTree(ByVal FolderName) Dim objFSO Dim InterminPath Dim

DevX - Software Development Resource

Control the Concatenation Results in SQL Server

You can control the concatenation results using SQL ServerCONCAT_NULL_YIELDS_NULL(T-SQL). Depending upon the CONCAT_NULL_YIELDS_NULL settings, the concatenation results are treated as null or empty string values. When SET CONCAT_NULL_YIELDS_NULL is ON,

DevX - Software Development Resource

Separate Trace Statements

Sprinkling TRACE statements in your code is a common practice during development and debugging, especially when refereshing UI code, or multi-threading, etc.Usually, people write something like this: TRACE(“My Trace “);

DevX - Software Development Resource

Declaring Conditional typedefs

Conditional typedef declarations can be useful in cross-platform development. For example, some platforms define long as a 32-bit integer. Other platforms treat long as a 64-bit integer. You can create

DevX - Software Development Resource

How to Re-open a Nested Namespace

As strange as it may seem, C++ doesn’t allow you to re-open a namespace using a qualified name; you can re-open it only by using its nested name. For example,

DevX - Software Development Resource

Design Secure Visual Studio.NET Web Services

ost Web services created with Visual Studio.NET are written in a managed language such as C# or VB.NET, which has security benefits. Managed code can help mitigate security threats such

DevX - Software Development Resource

Is DHTML Dead?

few years ago, Microsoft released Internet Explorer 4, which changed the course of Web client-side development. Not only was it ubiquitous, delivered with every version of Windows, but it also

DevX - Software Development Resource

Use Value in XSL

Define value: Combine with the xml file: Use it: The value define statement can be created in an xsl file, and this file can be included in other xsl files