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

Detect Swing Version

Sun changed swing naming convention from com.sun.java.swing to javax.swing.This created a bit of confusion, but you can exploit it to see what versionof swing is installed in a browser, or

Date Comparison in Java

To compare dates in Java you have two choices:1. Create java.util.Date objects based on the dates that you’d like tocompare. use “public long getTime()” method of each date object to

Manipulate Your Code Window in VID

There are many ways to help you manipulate your way through the VID MDI child code windows. Here are a few shortcut keys that can help. Ctrl-Up Arrow: Scroll up

A Free Copy of the C++ Standard

The following site offers a slightly outdated version the C++ standard free of charge: ftp://ftp.research.att.com/dist/c++std/WP/CD2/. The differences between this version and the latest version of the standard are mostly editorials

Get a Free XML Parser for C++

XML4C is a validating XML parser written in C++. It enables an application to read and write XML data. Two shared libraries provide classes for parsing, generating, manipulating, and validating

Using Server.HTMLEncode

There are many special characters that must be encoded to be viewed in HTML. Examples of these are:& (&), ” ("), < (<), and > (>)It is easy to hardcode

Display HTML Pages in Your Apps

You can use javax.swing.JTextPane to display simple HTML page. JTextPane jTxtPane = new JTextPane();JScrollPane jScrollPane = new JScrollPane();jScrollPane.getViewport().add(jTxtPane);try { URL url = new URL(“http://www.mysite.simplepage.html” ); jTxtPane.setPage(url);} catch (Exception e) {

Use Maxlength to Protect Your Database

We often design HTML forms to gather information. The data is later stored in a database backend such as SQL Server. In such databases, you have to specify the length

Detect Unused Objects

Improper use of objects and object references can cause your application’s objects to stay resident in memory. Such “memory leaks” often causes system performance degradation and prevents your application from

The R++ Programming Language

R++ is an extension to C++ that supports rule-based programming. Thus, programs written in R++ have all the facilities of C++ plus a new programming construct: a rule. A rule

Supply Users With More Icon Choices

In the past, VB allowed an app to have only one icon. However, resource files expose any contained icons to Windows. Simply add the icons you wish to show to

Display Queries in an Excel Workbook

Question: I’ve developed an application using JavaScript to access Oracle database and display results in sets of tables on an HTML page. Recently, I got a request to place the

What Is an XML Server?

Question: What is an XML server and how would I use it? Answer: There are a number of possible answers, depending upon the specific product. However, typically an XML server

Sending Many Database Rows with XML

Question: Is there a way to select a structure of a database row and send it once from a server to a client and after that send thousands of rows?

Apply an XSL Filter to an XML Document

Question: I copied an XML document and an XSL document out of my XML for Dummies book. It said that to make the XSL document affect the XML document, I

Set Tab Order in a Hurry

Setting up the control tab order can be unruly-a sore point with many VB developers. In fact, in Jeff Hadfield’s recent editorial, “Five Things You Hate About VB6” [Editor’s Note,

Extend the Timeout of an ASP

It is possible to set a default timeout value for your Web application via Internet Service Manager. However, there are occasions when an ASP might process longer than this default

Treat the User to Consistency Between Sessions

It is common for an application to retain user preferences between sessions.In Java, the java.util.Properties class provides you with a simple, elegantmechanism for storage and management of properties. An extension

Add a Document Name to Your Printouts

I wanted to distinguish between different print jobs. I tried to find a way to set the print job name that appears in the printer queue, but even some nasty

Take Care When you Declare

This is a common error among C programmers who have recently switched to VB. This code would result in A and B as Variant variables and only C as an

Generate Business Object Classes

I often include a module called Utilities.bas in my projects. It contains routines that are not directly used by the application, but instead are invoked in the Debug window, usually

Minimizing Window Shortcut Key

Question: I can press Windows Key + M to minimize all windows, but how do I minimize only the current window without using my mouse? Answer: Well, I can give

Making the Permissions Tab Appear

Question: I am trying to set up delegate rights on different clients in a domain. However, when I try to pull up the Properties tab on folders on some of

Use a Data Stream as a Source for DOMDocument

Question: Instead of using: oXML.Load “c:program filesxml notepadAppntmts.xml” I want to do something like: oXML.Load Command() where the Visual Basic Command function returns an XML formatted data stream passed on

Applications that Benefit from Using XML

Question: What types of applications can I use XML in? Also, how do I convert my existing ASP-based applications into XML? Answer: While there really isn’t any application that probably

View-only Admin Permissions

Question: Is there an NT Account Operator equivalent in Exchange? Answer: Yes, in a manner of speaking. To give a user, such as an assistant, permissions to create, modify, and