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

Accessing External Table

Question: How do I define an external table (that is not in my current database) in Informix and access the data in it? Answer: If you’re connecting to an external

Finding the First Date of a Week

Question: If I have the number of a given week of a year, how can I get the date of the first day of that week? For example, I want

GetCookies – Get local cookies for a given URL

Private Declare Function InternetGetCookie Lib “wininet.dll” Alias _ “InternetGetCookieA” (ByVal lpszUrlName As String, _ ByVal lpszCookieName As String, ByVal lpszCookieData As String, _ lpdwSize As Long) As Boolean’ Get locally-stored

Converting Input String to Proper Case

This is a simple string manipulation functionality that is often required.It converts the input string into a proper string (eg., “how are you doing?” will return “How Are You Doing?”).

VB Control Space Completion

You can use to activate Intellisense to prompt you forvariables/methods/properties/events at any point in a code window. For example:If you have a variable named myvariable, typing myv and then doing

string::npos

Question: Could you please explain what the significance of string::npos is in the statement? someString.find_first_not_of(“0123456789”)==string::npos Answer: string::npos is a constant integer that holds the maximum value of characters that a

Checking If a Function Pointer is Valid

Question: I am collecting a number of function pointers in C++ and before I call them I want to check to see if they have been set. I really want

How to Use Some Variable in 2 EXE Programs

Question: Can you to tell me how to use a variable in other VB projects; i.e.,how to use some variable in two EXE-compiled VB projects? Answer: Because of the way

The MB ActiveLink Control

The MB ActiveLink Control is a label-type control that the end user can click to jump to the specified web URL, Email address or document, or open the associated application.

Forms, Formats, and Contents

was studying the excellent Francesco Balena book, “ProgrammingVisual Basic 6.0,” edited by Microsoft Press, the cost of which iswidely compensated by both the book and the enclosed CD contents&#151:when Iran

Returning Aggregates from a Function

Both C and C++ allow you to return by value aggregates, e.g., structs and unions, from a function. However, the runtime overhead of returning large objects by value can be

Designing a Generic Callback Dispatcher

In many applications, you need a generic class that invokes callback functions regardless of their class type. For example, an even-driven system that needs to call a member function of

Accessing a Class-Internal Type

Here’s a common error: you define a class-internal type, say an enum or typedef, and then try to use it as the return type of that class’s member function: class

Overcoming a Common Bug in

The standard functions isalpha(), isdigit(), isprint() etc., defined in the standard header or often fail to produce the right results because they assume that their arguments are of type ‘unsigned

How to Remove Flashing in an Applet

Most of the Java books talk about double buffering for removing theflashing. It solves the problem to some extent but not 100% perfect in caseof flashing. I am giving the

Event for Posting New Items to a Folder

Question: I have been asked to write a script that will send an e-mail to a distribution list if a new item is placed in a public folder. I have

Unable to Update Public/Free Busy Data

Question: I have one user who is getting an error when he has Outlook open. He’s unable to update public/free busy data. He’s the only user at that location who

Moving Large Mailboxes Overseas

Question: We currently have three Exchange 5.5 SP3 servers in California. We’re going to add one server in London and use x.400 connectors, but we’re not sure what the best

Create a NNTP Offline Server

Here’s the code to simulate a simple NNTP server that provides offline news reader support to WebReader. Hope you enjoy it. import java.util.*; import java.io.*; import java.net.*; class nntpServer {

Static and Object Initializers

Two types of initialization blocks (anonymous blocks) can be used to initialize class or instance variables in Java. To intialize instance variables, {} block can be used; this block functions

HTML to HLP Converter

Download this tool and convert any Java API downloaded from the java.sun.com into Windows Help format, the advantage of this is that you can use the inbuilt Search facility that

Checking for Null After New

In lot of places, I have seen developers doing a ‘new’ to instantiate a user-defined data type (Objects) and then later in the source code checking whether this new Object

Sorting MSFlexGrid

Ever wonder how to get the MSFlexGrid to have sorting behavior common inmany Windows applications? That is to say when you double-click on acolumns header it sorts ascending. Double-click again

Use Decode Function for Oracle Queries

Decode is a very useful and handy function for Oracle queries. Itreplaces the complex If-Then-Else logic, which is used to display different things based on different values in a column.

Silent install with VB6 Deployment and Packaging Wizard

VB6 Deployment and Packaging Wizard’s resulting setup.exe has a commandline switch that allows for a silent install. This feature is virtuallyundocumented except in the source code for Setup1.exe. The default

Informix Registration Within SQL Server 7

Question: How can I view Informix database tables via the SQL Server 7 Enterprise Manager? Answer: I’m not a SQL Server user, so I can’t address your SQL Server specific