The Latest

DevX - Software Development Resource

Contain Tab Groupings Within a Frame

The best way to work with the tab control is to set up a different frame for each tab. If you set the frames to be indexed, you can quickly

DevX - Software Development Resource

View the Right Side of a Truncated String

You see trailing ellipses (…) when VB truncates either the expression or data portion of a data tip (the mouse-hover watch value you get while debugging). This is great if

DevX - Software Development Resource

Determining the Angle Between Two Lines

In graphical applications, you often need to know the angle between two lines. You can move their intersection point to the origin easily, so all you need to do is

DevX - Software Development Resource

Flash MX Is a Big Step Forward

acromedia just announced the sixth version of the Flash IDE and player, Flash MX, which positions Flash as the vanguard of an entirely new project strategy, called Macromedia MX. Flash

DevX - Software Development Resource

Showing and enumerating MDI child forms

An MDI child form is a regular form whose MdiParent property points to its MDI container form, so the code that creates and displays a child window is very simple:

DevX - Software Development Resource

Multi-column menus

The new Break and BarBreak properties of the MenuItem object let you create menus with multiple columns. All you have to do is set either property to True for the

DevX - Software Development Resource

Copying data into the Clipboard

Copying a piece of information into the clipboard is as easy as calling the Clipboard.SetDataObject: you can pass this method a string, an image, and so on. If you pass

DevX - Software Development Resource

Boolean Conversion

Numeric values and pointers are implicitly converted to a Boolean value in conditional expressions. For example: void *p = get_ptr();if(p){ // process p} A zero value evaluates as false. All

DevX - Software Development Resource

Using Pointers as Integers

In the early days of C, pointers were plain integers. Relics of this approach can still be found in vintage APIs and legacy code. For instance, the ANSI C header

DevX - Software Development Resource

Notes about the system() Function

The system() function (declared in ) launches another program from the current program. As opposed to what most users think, it doesn’t return the exit code of the launched process.

DevX - Software Development Resource

A Recommended Exception Handling Policy

Exceptions report abnormal runtime situations. Although you have other mechanisms for detecting and reporting runtime errors, exceptions are advantageous because they automate the process of passing the error from a

DevX - Software Development Resource

Uses of the

The volatile specifier disables various optimizations that a compiler might automatically apply and thus introduce bugs. I Related Posts Telecom Battle Ignites Over Stolen 5G SpectrumDocker Update Adds Orchestration CapabilitiesEpic

DevX - Software Development Resource

Create a Touch utility

The SetCreationTime, SetLastWriteTime, and SetLastAccessTime methods of the System.IO.Directory class let you modify the date attributes of a file or directory: ‘ Change the access date- and time of all

DevX - Software Development Resource

Internationalize Your ASP.NET Applications

Ollie Cornes has been working with the Internet and the Microsoft platform since the early 90’s. His roles have included programming, technical authoring, writing, project management. He has co-written several

DevX - Software Development Resource

Accessing Data Members in a Multithreaded Application

To ensure that only a single thread accesses a data member of an object, declare that member private. Next, add the necessary synchronization operations (e.g., a call to EnterCriticalSection()) in

DevX - Software Development Resource

The std::unexpected() Function

The Standard Library defines a function called std::unexpected() which is invoked when a function throws an exception not listed in its exception specification. std::unexpected invokes a user-defined function that was

DevX - Software Development Resource

Registering a Function with std::set_unexpected

set_unexpected() takes a pointer to a user-defined function of the following type: typedef void (*handler)(); Use set_unexpected() to register a user-defined routine that will be invoked when a function throws

DevX - Software Development Resource

Drawing Arrows

If you Related Posts You Should Use Low-Code Platforms for AppsFind the Max Value Using PythonWhite House report supports open AILimiting the Amount of Characters Output in a Column Using

DevX - Software Development Resource

Include Templates

Unlike ordinary classes and functions, which you declare in a header file and define in a separate .cpp file, a template Related Posts Accelerate Multi-dimensional Analytics on Hadoop with KylinSupport

DevX - Software Development Resource

Limit Users Typing in Combo Box

The standard textbox has a MaxChars property that lets you limit the number of characters a user can type into it. The drop-down combo does not, but you can emulate

DevX - Software Development Resource

Design Extended Multiselect Listboxes

When you design a database in Access 2000, the most intuitive way or your users to look at the data they want might be to let them use xtended multiselect

DevX - Software Development Resource

Trim the Contents of HTML Form Elements

To use this tip, the HTML form element which is required for Null Check should assign the title property some value concatenated with “C.” For example: On the submit tag,

DevX - Software Development Resource

How to Schedule a Task

Here are three alternatives to scheduling a task run repeatedly without using threads:1.Using loop construct: boolean temp=true; While (temp) { for (int i = 0; i < 999999999; i++) {

DevX - Software Development Resource

Run a SQL Script File Using T-SQL

There’s no direct command to read a script file and execute it. But isql.exe and osql.exe come in handy when you have to execute a script file from within T-SQL.

DevX - Software Development Resource

Improve the Performance of Loops

Almost all Java applications require looping at some point or other. Even the slightest improvement in looping time can make a huge performance difference. Because the size of an array