devxlogo

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

Understanding What Memory Alignment Means

Most CPUs require that objects and variables reside at particular offsets in the system’s memory. For example, 32-bit processors require a 4-byte integer to reside at a memory address that

When Can a void-Cast be Useful?

Stringent compilers issue a warning message when a function’s return value is ignored. For example: int func(){ return 0;}int main(){ func(); //return value ignored} Indeed, ignoring a function’s return value

Alternative Representations of C++ Operators

C++ defines textual representations for logical operators. Platforms and hardware equipment that do not support all the special characters used as logical operators can use these alternative representations. The alternative

React to Font-Changed Events

Use WithEvents to perform an action when you change any font properties of a specific control or form. Make sure you set the OLE Automation reference in the References dialog:

Q&D Sort Using Hidden List Box

VB has no built-in Sort function. Although lots of sort routines of varying complexity and performance are available, there’s a simple “cheat” that you might find useful. The standard VB

Toggle Listview Headers Between Flat and 3-D

Whenever you want a ListView control with flat, nonclickable headers, use this code to toggle the header style. Flat headers don’t give users the impression of sortability that 3-D headers

A Generic Routine to Fill Unbound Lists

A common need in database processing is retrieving a list of the values of a particular column field for every record in a table. This function takes arguments for a

Consolidate Global Data

We all know that using global variables in our projects is not considered good programming practice. Nevertheless, everyone does it. Sometimes you need to introduce public variables for storing initialization

Speed Up Download Time

Question: How can I speed up the download time of the text and images on my company’s Web site? Is there any rule of thumb to go by? Answer: The

Functions Returning Arrays

Question: Is it possible for a function to return an array instead of a single value? Answer: No but, then again, you don’t really pass arrays as parameters, either. What

Creating a Callback Function Pointer

Question: I am using Microsoft Visual C++ 6.0 and am trying to create a callback function pointer to the public member of a class, but I keep getting the following

Linked Lists and Recursion

Question: I am using several large data structures as linked lists to process some data. Many of my helper functions use recursion. Because of the size/amount of data that I’m

C Equivalent in C++

Question: What is the C++ equivalent of the fflush(stdin) statement in C? Answer: Fortunately, although C++ offers many new ways of doing thing, it still includes everything that was in

Handling Extremely Large Integers

Question: I’m trying to write an app that handles some complex mathematical functions, but am hitting a wall in regards to the int data type. I need to store and

Determine Date Format on the Server

Question: Is there any way I can use ASP to get the date format on the server? I don’t want to return a date and then print it. I want

Using MS Office Objects From ASP Pages

Question: Is it possible to create a server-side object so that an ASP page can gain access to Microsoft Office information? I am trying to find a way to edit

ASP Scrolling Through a Resultset

Question: How can I display groups of records (for example, the first 10 records), then allow the user to click Next to display the next set of records? I have

Verify Whether a File Exists From ASP

Question: I am trying to access some PDF files in a database. I give the address of the file in the browser as an IP address. I am trying to

DHTML Options Object Generation

Question: I tried loading two frames in the browser called “TOP” and “BOTTOM”. The “BOTTOM” frame loads a JavaScript file (j1.js) and another two frames in it called “LEFT” and

Displaying Items Above ActiveX Controls

Question: I am using tags as dropdown menus at the top of my pages. But if I have an ActiveX control below my menu then the dropdown menus’ fall drops

Retain Values in a Page in ASP

Question: Is there any way to retain values in a page (text box, check box, radio, and so on) after going to some other page and coming back? I don’t

Using Form Elements in DHTML

Question: I am having a problem accessing the form elements that are inside a DIV tag. It works in Internet Explorer but not in Netscape. The alert comes in both

Nonblocking I/O

Question: Say I have 10 sockets and I want to have a thread which checks for a message from the sockets using their InputStreams. The thread will wait in the

Capturing KeyEvents

Question: How can I capture KeyEvents in a Frame that doesn’thave any TextFields or TextAreas? Answer: To enable a particular AWTEvent in a Component it suffices to add alistener for

A Simple Sort Not Working

Question: I have the following: sql=”select * from products” How do I sort or order by two columns retrieved in the “*”? Answer: You need to specify them directly in