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

Use Inline Frames for Extra Power

With Internet Explorer (3.x and higher), you can use an inline frame to provide a rectangular area into which you can write or retrieve content. An inline frame essentially opens

DevX

JavaScript Cookies

Question: How long can a document.cookie string be? In other words, how many cookies can I set? Answer: There are a number of important limitations on the use of cookies

DevX

Exceptions as objects

The traditional convention of sending an integer as an error flag is problematic and unsatisfactory in OOP. The C++ exception handling mechanism can offer much more flexibility, safety and robustness.

DevX

Accessing a string element

The standard string class offers two ways to access a single character from a string object. The first one is to use the overloaded subscript operator [ ] like in

DevX

Consistent operator overloading

Whenever you overload operators such as + or -, it is useful to support the corresponding += and -= as well. As opposed to a common belief, the compiler will

DevX

Handling E-mail with HTML, CDO, and SMTP

here are some mighty powerful e-mail solutions out there in network land. Just look atthe size of Microsoft Exchange. But how about handling your intranet e-mail with somethingfast, light, cheap

DevX

SQL Server on the Web

icrosoft SQL Server is a great database for Web sites, especially Web sites deployed on NT and using Microsoft’s IIS server. It’s easy to install, relatively cheap, and interacts well

DevX

Customizing Style Sheets on the Fly

‘m afraid that age is catching up with me.  Once, in my distant youth (well, maybe not all that distant), my eyesight was about perfect?I could make out inch high

DevX

NT Registry Query

Question: What is the best browser-based way to read values from the Registry? Can JavaScript do it? Answer: There is no easy way to read the Registry on a user’s

DevX

Check if file exists

Question: Is there a way for me to check if a file exists before writing to the file using Java? Answer: You can determine if a file exists by calling

DevX

Dynamic class casting

Question: Does java have dynamic_cast? If so, how is itused? Answer: All class casts of nonprimitive types in Java are dynamic and performed at runtime.In C++ the dynamic_cast operator will

DevX

Calculating # of days between two dates

Question: I need help to calculate the number of days between two dates. This may seem like a trivial question, but for the life of me, I cannot find away

DevX

Exponents

Question: How do I go about using exponents in Java? For example, how would I do 6 to the power of 3? Answer: You want to look at the documentation

DevX

Image loading

Question: I’m having trouble reshaping a frame to the size of a loaded image. I start out by saying: int fx = image.getWidth(this); int fy = image.getHeight(this);then I try to

DevX

Debugger breakpoint mismatch

Question: We have installed Powerbuilder 6.0.0. and have migrated applications. The application is working OK, but I am having a problem with the debugger. When I put a “break point”

DevX

Asking a proper question

Question: I have tried using the “shell” statement in VBA to load and run an existing .exe file. The file seems to load but does not run. (I have used

DevX

Find if directory exists

Question: We would like to find out if a directory that was typed exists. Furthermore, we prefer not to use a list box control or getFileOpenName. Answer: To do this

DevX

Record date/time when updating record

Question: I’m using PB6.0 with Sybase SQL Anywhere 5.0. I would like to be able to record the date and time in my table(s) whenever a user updates or adds

DevX

Powerscript – Mouse

Question: How do you get the position of the mouse pointer (x- and y-cordinates) in a script? Answer: Use the PointerX() and PointerY() functions.

DevX

Controlling other programs

Question: How can I make a program that controls other programs? For example, I’ve seen programs that can change the text in a text box of another program. Answer: Sounds

DevX

Highlighting a row a different color

Question: Using PFC, when I select a row, it turns dark blue, often obscuring the data. Is there a way to change the color to something lighter? Answer: The way

DevX

Determining time zone setting

Question: How can I find the Active Time Zone offset from UTC that the computer clock is set to? This value changes when going from Standard to Daylight Savings Time.

DevX

Converting long to two integers

Question: How do you convert a long integer to two integer values (that is, get the low word and high word contained in a long integer)?Danial Appleman’s API Guide discusses

DevX

Determining the OS using API

Question: Is it possible to use API to determine the OS of a system without resorting to SysInfo control? Answer: Sure. Just call the GetVersionEx API. Add the following to

DevX

Problems with TypeOf

Question: Given: Dim oX as Object Set oX = optChoice1 If TypeOf oX is CheckBox Then… If optChoice1 is a CheckBox the If… will be true unless optChoice1 is an

DevX

Current Directory

Question: I made a project that resides in a subdirectory under Microsoft Visual Basic 4. Example: C:/Program Files/Microsoft Visual Basic// When I run the program, I want it to get