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

Determine Next/Previous Weekday

This function returns week identifier information, such as Week Beginning/Ending date, and makes it more generic to return a date of any previous or following weekday. You can use this

Let the Editor Check Your Spelling

To make certain that you declared your variables, place Option Explicit in your Declarations section. Using a mixture of upper and lower case in variable names, you can easily verify

Create DLL from PB

Question: I have an application with a lot of business logic in nonvisual objects that I’d like to deploy as DLLs callable as standard windows DLLs from applications written in

DCOM and Win NT Workstation

Question: How many DCOM connections can I have on a Windows NT Workstation? (Does it have a limit of 10, like in shares?) How is performance affected when 20 users

DBENGINE – 16 bit

Question: I need to use the BDE in a Windows 3.11 environment. My Delphi 1 system does not include BDEINST material, although the help files refer to it. How can

Simulate Win95 Taskbar Within Your App

The Windows 95 taskbar (with the Auto Hide check box set) is quite attractive and provides a compact, nonintrusive way to access and organize information. You can easily simulate this

VB Version IsDate Differences

Under VB3, IsDate returns True only if the string corresponds to the date format indicated by the “Regional” or “International” settings in the Control Panel. Under VB4 and VB5, however,

Assert() is Dangerous

The standard assert() macro tests its argument. If the result evaluates to 0, the standard abort() routine is called. Back in C heyday, it was a very useful debugging tool

How to Avoid Code Bloat When Using Templates

If you are using templates in your code, you are probably aware of their invaluable advantages. However, templates can cause a code bloat: The compiler reduplicates the template’s body for

Explicit Template Instantiation

In large projects, where hundreds of source files have to be compiled on every build, the long compilation time can be reduced significantly if templates are explicitly instantiated all at

The Type of a Class Template

A template name is not a type. When you need a template functioning as a full type (for example: to serve as a base class or as a function argument),

Template Specialization

Templates are generic due to their type unawareness. However, there are cases where you need a special behavior for a specific type. C++ supports these cases by means of template

JavaScript Switch Statement

The latest version of JavaScript used by both Netscape Navigator 4.x and Microsoft Internet Explorer 4.x includes a C-like switch statement that closely mirrors the SELECT CASE statement available in

Create Horizontal and Vertical Lines Using DHTML

It’s possible to dynamically create horizontal and vertical lines and rectangles using Internet Explorer 4.0 Dynamic HTML to alter the width and/or height of a single pixel image. Using this

Animating Images with JavaScript

Animating between a number of images is fairly easy to do and works in Netscape Navigator 3.0+ and Internet Explorer 4.0+. Put the URLs of the images you’d like to

Printing from Browser

Question: Is there a way to print an HTML page (perhaps using VBScript or JavaScript) without the user clicking on the print button? Answer: Ah, printing! You would think that,

Setting z-index

Question: I am having problems setting a lower z-index for a layer that contains a combo box. All of the elements in that layer are covered by a higher z-index

Running Out-of-Process Components

To run executables and objects from Word and Excel from Active Server Pages, you need to change the value of an IIS4 Metabase property called AspAllowOutOfProcComponents to True. The easiest

Limit Your Cookie Size

There are a number of important limitations on the use of cookies by Web site developers. This is because cookies are intended to be used only for infrequent storage of

Visual InterDev: Data Sources Names

For Visual InterDev to work properly, you need to duplicate the data source names (DSNs). The trouble is that, in Visual InterDev 1.0 (VID), the workstation and the Web server

Same Layer Over Different Frames

Question: Is there a way to place and/or move a layer over different frames? I have a menu-frame on the left and a main-frame on the right. Now I’m trying

Percentage of whole, upon a group

Question: Is it possible to display a grouped column as a percentage of the whole? Say I have a table that has two fields: ACCESS_TYP CHRG————————- 10 1.00 10 2.00

Programming

Question: What is the best path to follow if I wanted to learn to program? (VB, then assembly, then …)I need to know what to start with so I can

Overloading + operator

Question: I’ve been working on the + operator in my string class. I came across an interesting dilemma: the following code doesn’t call any of my + operators.For example: String

Menus

Question: A book I have purchased on C++ programming describes how to make menus. It says to use the Resource Workshop that came with my Borland 4.0 compiler. However, whenever

Error, stack overflow

Question: I work in Borland C++. My program compiles very well, but it exits it with the “stack overflow” error even before executing the first command. Answer: It won’t be

C++ origins

Question: Who invented C++, and why is it so popular? Answer: C++ was created as an extension to C by AT&T researcher Bjarne Stroustrup, who built the first version of

Direct Linked Librarys

Question: I do a lot of programming in Visual Basic 5. I develop my own components and DLLs. Most of the components I develop are for use with PC data