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

Command Line Input to Java Application

As in C and C++, it is not easy to give input to an application in Java. This is sample code to check whether the given number is even or

DevX - Software Development Resource

Launch a File with its Associated Program

This code will allow you to launch a file with its associated program. #If Win32 ThenDeclare Function ShellExecute Lib “shell32.dll” Alias “ShellExecuteA” _(ByVal hwnd As Long, ByVal lpOperation As String,

DevX - Software Development Resource

Track Changes to your Crystal Reports

Since Crystal Reports files are stored in a binary format, it’s impossible to accurately track (using SourceSafe, for example) the changes you and your colleagues make.To help remedy this situation

DevX - Software Development Resource

Effective Use of the LogonUser

How do you use the LogonUser API in VB?1. Call RevertToSelf (this is the critical step as it allows the code torun under the System account)2. Call LogonUser3. Call ImpersonateUserThis

DevX - Software Development Resource

Get the exit code of a process

In a few cases, in particular when running MsDos batch files from within a VB application, you may want to determine the ERRORLEVEL set by an external application. You can’t

DevX - Software Development Resource

Determine whether a control has a scrollbar

There is no built-in VB function that lets you know whether a control – such as a ListBox – is currently displaying a vertical scrollbar. Here’s a pair of functions

DevX - Software Development Resource

Check for a valid URL

Before posting an Internet request you should check that the user has entered a valid Internet address. You can do this with a parsing routine, or use the following routine

DevX - Software Development Resource

Sorting on multiple keys

Frequently you need to sort arrays of records using multiple keys. This may be required since one single key does not uniquely identify a record (e.g. you may need both

DevX - Software Development Resource

Determine memory usage

The GlobalMemoryStatus API function returns detailed information about the current load on the physical and virtual memory. You can use the following code to display the current amount of free

DevX - Software Development Resource

Generate PDF Files Dynamically Using XSL-FO

his article shows you an easy way to generate PDF files dynamically for display in a browser by using an XSL vocabulary called XSL-FO (Extensible Stylesheet Language Formatting Objects). A

DevX - Software Development Resource

Check if a Given String Is a Palindrome

This code checks if a given string is a palindrome. Public Function IsPalindrome(strToCheck As String) As BooleanDim iForward As IntegerDim iBack As IntegerDim iMid As IntegerDim bPalindrome As BooleanIsPalindrome =

DevX - Software Development Resource

Use Explicit Template Instantiation

Instead of depending on the compiler to instantiate your template, youshould explicitly instantiate them using the following statement: template class vector; // for class instantiationtemplate int& vector::operator[] (int); // for

DevX - Software Development Resource

Exporting SQL Server Results to XML

Beginning with SQL Server 2000, Microsoft added support for SQL-XML interoperability. They did this by expanding some statements that we all know

DevX - Software Development Resource

Detecting Memory Leaks in Palm OS

Memory is precious in Palm OS, so you can’t afford any memory leaks in programs. Therefore, it’s very essential to detect any memory leaks. To do this put breakpoints in

DevX - Software Development Resource

Efficient Window Client Area Painting in VC++

Everybody knows that the WM_PAINT message is passed to a window whenever it needs to be painted. Usually, we code all of our painting instruction in the handler of WM_PAINT,

DevX - Software Development Resource

Improve Linear Searching

In order to increase the efficiency of your linear searching, add the item you are searching at the end of the list (either an array or linked list) and write

DevX - Software Development Resource

How Do ‘New’ and ‘Delete’ Actually Work?

The C++ runtime library includes a heap manager (subroutines responsible for maintaining the heap). The heap manager does bookkeeping to keep track of which parts of the heap have been

DevX - Software Development Resource

Dealing with Delimited Strings in T-SQL

This is a simple way to find out the word count in a comma delimited string: declare @mystring varchar(200)set @mystring=”vb,asp,sqlserver,html”select (len(@mystring)-len(replace(@mystring,’,’,”))+1) The following code will parse the delimited string: –variable

DevX - Software Development Resource

Naming a Thread

Debugging a multi-threaded program in Visual C++ may be difficult, especially when switching between multiple threads using the Debug/Threads menu. One efficient way to distinguish threads during debugging is to

DevX - Software Development Resource

Toggle Code Blocks with C Comments

If you find yourself constantly commenting and uncommenting bits of code during development, this tip could come in handy. Normally, you’d do something like this: #define /* #undef */ _FOObool

DevX - Software Development Resource

A More Enhanced Right() Function

Normally, the Right() Function VB returns only the Length specified from the End. If you want to extract the Right portion from any index of the String you have to

DevX - Software Development Resource

Another Form of Mid() Function

Sometimes, while performing String operations, you may want to extract part of the string from the main string–from the StartPosition to the EndPosition specified. The problem with the Mid() is

DevX - Software Development Resource

Setting Different HTTP Options

The following are the http properties for the HttpURLConnection:1) http.proxyHost (default: ) – defines the Proxy through which the request should be routed. 2) http.proxyPort (default: 80 if http.proxyHost specified)-