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

Avoid Hungarian Notation in Public Interfaces

Most coding standards recommend the use of Hungarian variable naming, which uses prefixes to indicate the variable’s type. However, these naming conventions usually should not be used in a component’s

DevX - Software Development Resource

Getting MAPI entryID’s From Outlook Folders

This tip is useful if you do Outlook automation with user created Outlook folders. These folders cannot be accessed by the GetDefaultFolder method usually employed in automation techniques. This snippet

DevX - Software Development Resource

HTML Doc Add-in

This handy add-in creates code headers in VB source and HTML documentation for VB projects. When you run HTML Doc the first time, it will create all these headers with

DevX - Software Development Resource

Create Your Own VB Add-Ins

Why should you createAdd-Ins? We programmers always feel that we are short of several features whileworking with Microsoft tools, it seems that Microsoft hasn’t yet developed thetool we needed. In

DevX - Software Development Resource

Use Refresh, not DoEvents

The DoEvent statement should be used only to give other portions of your program to be reactive to the end user’s actions. Instead, many VB developers use it to force

DevX - Software Development Resource

Delete a folder and all its subfolders

The RmDir command can delete a directory only if it doesn’t contain files or sub-directories. If the directory you want to delete does contain other files or, worse, subdirectories it

DevX - Software Development Resource

Swap strings the fast way

Consider the usual way of swapping two strings: Dim s1 As String, s2 As StringDim tmp As String’ initialize the strings s1 = String$(1000, “-“)s2 = String$(1500, “+”)’ do the

DevX - Software Development Resource

Serializing and Deserializing Arrays

Suppose you want to store the movements of a chess game in a file so that when the program terminates, the users can resume it later from the same point.

DevX - Software Development Resource

What Is a Thunk?

The term thunk dates back to the days of the antediluvian Algol programming language and has stuck since then. A thunk is an invisible and parameter-less function or procedure that

DevX - Software Development Resource

DLLs and Dynamic Memory Allocation

Dynamic linking — either in the form of shared libraries in Unix or Windows DLLs — is not defined by standard C++. However, this is a widely used feature among

DevX - Software Development Resource

Obtain Exception’s Stack Trace as String

It is sometimes necessary to get the exception’s stack trace as String (for logging, reporting, etc.). Unfortunately, the Exception class itself provides only the getMessage() method which does not include

DevX - Software Development Resource

Variadic Macros

The concept of a variable argument list is rather common: void f(const char *format,

DevX - Software Development Resource

Provide

It is often helpful to provide a

DevX - Software Development Resource

Passing a UDT(User-Defined Type) Between Forms

There is a very simple way to get around the compile error when passing UDT (user-defined type) in procedure between forms. Just declare the procedure as Friend instead of Public.Example:

DevX - Software Development Resource

Resize the Column Headers to Fit the ListView

This function resizes the column headers to fit the ListView. It can be used in the Form_Resize event or just in Form_Load. ‘Module: Module1Option ExplicitPrivate Type RECT Left As Long

DevX - Software Development Resource

Get Started with JBoss Application Server

he JBoss Application Server is an open-source EJB solution that deserves your attention. Why? Because not only does the JBoss server have some impressive features that Weblogic, WebSphere, and the

DevX - Software Development Resource

Essential JavaScript: 8 Cross-Browser Solutions

here’s a core set of problems that every JavaScript developer will run across sooner or later. In my Web Developer classes, I’ve noticed that some questions arise repeatedly—they’re common problems.

DevX - Software Development Resource

Not Much to ‘C’ in C#

# is getting a lot of attention these days?so much attention that some DevX readers have begun to remonstrate on what they consider excessive coverage, especially for a language that

DevX - Software Development Resource

Form-Building Routines III—the Conclusion

f you’ve been following this series, the last couple of articles (see Resources) focused on writing some useful “form-building” routines in ASP pages. I’ll continue this month by developing routines

DevX - Software Development Resource

A Null Preprocessor Directive

An empty # sign is a null preprocessor directive. A null directive has no effect but you can use it to document your intentions, for example: ifndef HEADER_INCLUDED#define HEADER_INCLUDED#else# //

DevX - Software Development Resource

Wide-char File Streams

The library supports two types of file streams: char-based streams such as std::ifstream and whcar_t streams. The names of wchar_t streams are the same as their char-based counterparts, except that

DevX - Software Development Resource

Repositioning a std::fstream Pointer

Just like the fseek() function of , classes enable you to position the stream’s pointer at an arbitrary location by calling the seekg() member function. For example, you can position

DevX - Software Development Resource

char[] vs. char *

C++ forbids direct assignments of arrays. Therefore, your compiler will flag the following code as an error: char buff[];buff=

DevX - Software Development Resource

Optimizing the Use of std::string

Here a few guidelines for improving std::string’s performance and avoiding common pitfalls. Consider the following for-loop: std::string str =