We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

Passing a parameter to an external function

Question: Can I pass the address of a PowerBuilder function as an argument to an external function located in a dll? The dll documentation shows that it expects the address

DevX - Software Development Resource

64-bit integer support

Question: How can I support 64-bit integers on a 32-bit system? I need to do division on numbers exceeding 4.3 billion. I have the resaults in a char value, and

DevX - Software Development Resource

Copy objects

Question: Assume that you have a class Distance and two objects dist1 and dist2. You have initialized the object dist1. Now you do: Distance dist2(dist1) to create a copy of

DevX - Software Development Resource

Data Files Help

Question: I am teaching an introductory C++ course at thehigh school level. My textbook briefly coversdata files–sequential access–but doesn’t provide many examples of how to write/read multiple variables. Where would

DevX - Software Development Resource

DOS to Windows Conversion

Question: How do I convert a DOS file into a Windows program? Answer: Unfortunately, not very easily. While DOS programs will run under Windows and you may also want to

DevX - Software Development Resource

Resizing Dynamic Array

Question: int num = 50;int **stuff;stuff = new int* [num];for (int i = 0 ; i < num ; ++i) stuff[i] = new int [num]; The code above is copied

DevX - Software Development Resource

Derived Classes

Question: Functions are inherited easily. But if you have a variable in the base class and you want have the same variable but with a different type in the derived

DevX - Software Development Resource

Visual C++ Check/Radio Buttons

Question: How does one go about disabling/enabling buttons and check boxes in dialogs based on the state of other buttons or check boxes? The controls in question are of the

DevX - Software Development Resource

Far pointers in VC 5-6.0

Question: I was trying to do some direct memory stuff (writing to the DOS console buffer or a graphics screen) using my Visual C++ compiler. Unfortunately, the compiler is telling

DevX - Software Development Resource

File Input/Output

Question: I would like to know what is the difference in C between opening a file opened in binary or text mode. Answer: The primary difference is in the handling

DevX - Software Development Resource

Linking in a Resource File

Question: I am creating a Windows app using CC++. I have been using a shareware C compiler and a shareware resource compiler. I have compiled my .rc file into a

DevX - Software Development Resource

Rename a file

Question: In VB, how do you rename a file (at runtime)? Answer: Use the FileSystem object (Microsoft Scripting Runtime, SCRRUN.dll) as follows: Dim fs As New FileSystemObjectDim f As FileSet

DevX - Software Development Resource

Relocating Declarations Can Enhance Performance

On some occasions, the performance boost that can result from moving declarations is quite considerable. Consider this example: void use() { string s1; if (condition == false){ return; //s1 was

DevX - Software Development Resource

Using Piped Streams in an Application

Java’s PipedInputStream and PipedOutputStream classes allow you to write data to an OutputStream object and to read this data from an InputStream object (see the tips “Pass Data Between Threads

DevX - Software Development Resource

Display Tooltips on Your Hyperlinks

Web authors should be used to using the ALT tag to provide a textual label for an image. However, you can’t apply ALT text to a textual link, and most

DevX - Software Development Resource

Prevent Fields From Being Serialized

Objects are made serializable by implementing the java.io.Serializable interface. In general, when you serialize an object instance, all of the instance’s fields are considered to be part of its state,

DevX - Software Development Resource

Perform Safe Downcasts

A downcast is a cast from a base to a derived object. Before the introduction of RTTI to the language, downcasts were regarded as bad programming practice–they were unsafe and

DevX - Software Development Resource

Unroll Loops to Optimize Your Code

A compiler can automatically optimize the code by unrolling loops. Consider this code: int *buff = new int[3]; for (int i =0; i

DevX - Software Development Resource

Refresh Component Displays

When you create the visual components that make up a user interface, their size and position are usually constant. However, it’s sometimes necessary to change a component’s size or position

DevX - Software Development Resource

Linking Radio Buttons to Objects

Question: I have a page with two drop-downs and two corresponding radio buttons. When I choose an item from one drop-down, I’d like the corresponding radio button to become checked.

DevX - Software Development Resource

Microsoft FrontPage Server Extensions

Question: I built a Web site for my company using FrontPage 98 and can not seem to upload it back to the Internet. I get error messages about server extensions.

DevX - Software Development Resource

Testing COM Interfaces at Run Time

VB5 provides interface inheritance through the use of the Implements keyword. For example, CFullTimeEmployee can implement the IEmployee interface. This interface might include basic information such as name, social security

DevX - Software Development Resource

Using Label Control as Splitter

Here’s a demo for using a Label control as a splitter between two controls, as well as sample code for employing the splitter in an Explorer-like application: Option ExplicitPrivate mbResizing

DevX - Software Development Resource

Always Use Case Else With Select Case

Select Case statements can lead to errors when the test expression in the Select Case line doesn’t yield a true result for any of its individual Case expressions. Therefore, you

DevX - Software Development Resource

Quicker Textbox Additions

Consider these two examples of code that add a string to a textbox. Example 1: Text1.text = Text1.text & MyString Text1.SelStart = Len(Text1.text) Example 2: Text1.SelStart = Len(Text1.text) Text1.SelText =

DevX - Software Development Resource

Use Windowless Controls for Performance and Economy

VB6 comes with an ActiveX control named MSWLESS.ocx (“Microsoft Windowless Controls 6.0”), which contains lightweight equivalents for these standard controls: WLTextWLFrameWLCommandWLCheckWLOptionWLComboWLListWLHScrollWHVScroll The controls have lower resource consumption than their regular

DevX - Software Development Resource

Using the Format Function With Strings

You’ll use the Format function most often with numbers, but it can be useful when applied to strings as well. For example, you can format a credit card number-which is