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

Informix Data Types

Question: Does Informix support user-defined data types? Answer: OWS/IDS does not support custom data types. This is supported in the 9.X series and in the new Internet Foundation 2000 and

DevX - Software Development Resource

Synchronizing Workstation Clocks

Question: How do I synchronize all the Workstation clocks of a 100+ user community to the same reference? Answer: For NT 4.0, you can use the TimeServ.EXE, which is found

DevX - Software Development Resource

Mail Access from Handheld

Question: Does OWA in Exchange 2000 have a feature for accessing e-mail through a handheld? Can I just type in the URL and retrieve my inbox? Answer: If only it

DevX - Software Development Resource

Use “.equals” in Place of “==”

Java provides two methods to test for equality: the == Operator and the .equals method. The .equals is implemented by all objects. Most programmers tend to use == for equality,

DevX - Software Development Resource

Check whether RAS is installed

When you work with RAS APIs, you should have to make sure if RAS library is installed on the system. A simple way is to verify the existence of the

DevX - Software Development Resource

EnumRASEntries – Enumerate all available RAS phone-book entries

Const ERROR_SUCCESS = 0&Const ERROR_BUFFER_TOO_SMALL = 603&Const RAS_MaxEntryName = 256Private Type RASENTRYNAME dwSize As Long szEntryName(RAS_MaxEntryName) As ByteEnd TypePrivate Declare Function RasEnumEntries Lib “RasApi32.DLL” Alias _ “RasEnumEntriesA” (ByVal reserved As

DevX - Software Development Resource

Delete a User in NT

Question: How do I delete a user in NT with the API’s? Answer: The code below shows how to delete a user (if the server name is blank, it attempts

DevX - Software Development Resource

Setting the off-line mode

You can programmatically set the Internet Explorer off-line mode with the InternetSetOption API, as this code snippet demonstrates: Const INTERNET_OPTION_CONNECTED_STATE = 50Const INTERNET_STATE_CONNECTED = 1Const INTERNET_STATE_DISCONNECTED = 2Const INTERNET_STATE_DISCONNECTED_BY_USER =

DevX - Software Development Resource

Check whether the user is working off-line

Internet Explorer offers the possibility to simulate an Internet connection with the off-line mode. If you want to know if off-line mode is on or off you can use InternetQueryOption

DevX - Software Development Resource

An enhanced VB DatePart function

Here is an enhanced version of VB DatePart function: the first parameter is now an enumerated type, so easier to use. DatePartEx is 4-5 times faster than DatePart and supports

DevX - Software Development Resource

The CopyProc Add-in

This add-in breaks up the selected VB component’s code and prepares a list of all the procedures(Subroutines, Functions, Property Procedures and the Declaration section). You can select the methods and

DevX - Software Development Resource

GetNumLockKey – Get the state of the NumLock key

Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey As Long) As _ Long’ Get the current state of the NumLock keyFunction GetNumLockKey() As Boolean GetNumLockKey = GetKeyState(vbKeyNumlock)End Function

DevX - Software Development Resource

SetScrollLockKey – Set the state of the ScrollLock key

Private Declare Sub keybd_event Lib “user32” (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey

DevX - Software Development Resource

PressVirtKey – Press and/or release any key

Private Declare Sub keybd_event Lib “user32” (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey

DevX - Software Development Resource

SetNumLockKey – Set the state of the Num Lock key

Private Declare Sub keybd_event Lib “user32” (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey

DevX - Software Development Resource

SetCapsLockKey – Set the state of the Caps Lock key

Private Declare Sub keybd_event Lib “user32” (ByVal bVk As Byte, _ ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey

DevX - Software Development Resource

GetInsertKey – Get the current state of the Insert key

Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey As Long) As _ Long’ Get the current state of the Insert keyFunction GetInsertKey() As Boolean GetInsertKey = GetKeyState(vbKeyInsert)End Function

DevX - Software Development Resource

GetScrollLockKey – Get the state of the Scroll Lock key

Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey As Long) As _ Long’ Get the current state of the ScrollLock keyFunction GetScrollLockKey() As Boolean GetScrollLockKey = GetKeyState(vbKeyScrollLock)End Function

DevX - Software Development Resource

GetCapsLockKey – Get the state of the CapsLock key

Private Declare Function GetKeyState Lib “user32” (ByVal nVirtKey As Long) As _ Long’ Get the current state of the CapsLock keyFunction GetCapsLockKey() As Boolean GetCapsLockKey = GetKeyState(vbKeyCapital)End Function

DevX - Software Development Resource

Auto Select Content Component

We almost always need to develop forms in which the contents to the control have to be selected whenever the user tabs to a textbox or a combobox. For this

DevX - Software Development Resource

Use SourceSafe Shadow File Option

Microsoft Visual SourceSafe (VSS) doesn’t store its data in a format you readily can use, and MSwouldn’t put the “Analyze and Fix” option on your menu if it wasn’t needed.To

DevX - Software Development Resource

Using Distributed Queries on SQL Server 7.0

SQL Sever 7.0 allows developers to execute commands against OLE DB data sources on different servers. In order to execute commands on remote servers, the SQL Server instance where the

DevX - Software Development Resource

Assigning Integers to enum Variables

C and C++ differ in their handling of enum types. While C allows you to assign a plain int to an enum variable, C++ doesn’t. Therefore, a C compiler will

DevX - Software Development Resource

Unbuffered Streams

The standard stream object cerr and its matching wide-character version, wcerr, are unbuffered. This means that they are automatically flushed after each operation; they do not buffer data. This feature

DevX - Software Development Resource

The pow() Function

The Standard Library provides the pow() functions (declared in ) which takes two arguments of type double, x and y: double powl(double x, double y);pow() returns the value calculated of

DevX - Software Development Resource

Rules of Thumb for Software Internationalization

Internationalized software must enable easy porting to other locales. A locale defines language and specific cultural conventions. The process of adjusting internationalized software to a particular locale is called localization