The Latest

DevX - Software Development Resource

Retrieve the size of an AVI movie

To retrieve the original size of an AVI file that you’ve already opened with the mciSendString API function you can use this command Dim RetString As StringRetString = Space$(256)CommandString =

DevX - Software Development Resource

Play an AVI movie

If you want to play an AVI movie from VB you can use MCI functions. The main MCI function is mciSendString, that sends command strings to the system and execute

DevX - Software Development Resource

What are Obfuscators?

Java bytecode contains information in your Java source files. This byte code is generated by the java compiler as per an explicitly documented specification. It is not impossible to reverse

DevX - Software Development Resource

What Is Javadoc?

Javadoc is a program shipped with JDK that you can use to run over your source code to produce documentation of your classes in the same type of HTML files

DevX - Software Development Resource

Easy Way to Center Tables in an HTML Page

HTML DIV tags can be used to center a table within a page. DIV tag Related Posts DevOps Tool Vendor Chef Raises $40 MillionPaytm reshuffles executive roles for strategic boostUsing

DevX - Software Development Resource

The Robots of Java

Version 1.3 of Java 2 platform, currently in Beta, has a new java.awt.Robot class that lets you generate mouse and key events at system level. You can use this to

DevX - Software Development Resource

The Memory of an Exception Object

The memory for the temporary copy of an exception that is being thrown is allocated in a platform-defined way. Note, however, that it may not be allocated on the free

DevX - Software Development Resource

Accessing the Addresses of Class’s Member Functions

You can take the addresses of a class’s static and non-static member functions. However, the class’s constructor(s) and destructor are an exception to the rule. You cannot take their addresses

DevX - Software Development Resource

Zero Sized Arrays?

In standard C++, declaring arrays with zero elements is illegal: int n[0]; //illegal However, certain compilers do support arrays of zero size as non-standard extension. In contrast, dynamic allocation of

DevX - Software Development Resource

Avoid Returning Containers by Value

While the overhead of returning an ordinary object by value may be acceptable in most cases, returning a container by value is much more expensive in terms of performance. For

DevX - Software Development Resource

Emulating Infinite Precision of Floating Point Numbers

The representation of floating point numbers is just an approximation. Truncation and rounding occur frequently because the hardware cannot offer infinite precision when using a fixed number of bits. For

DevX - Software Development Resource

inline vs. __forceinline

MS Visual C++, as well as several other compilers, now offer non-standard keywords that control the inline expansion of a function, in addition to the standard inline keyword. What are

DevX - Software Development Resource

Declaring References to Functions

You can declare a reference to a function, just like you can declare a pointer to a function. For example: void f(int n){ ++n;}int main(){ void (&rf) (int) = f;

DevX - Software Development Resource

More on Default Arguments

The order of evaluation of function arguments is unspecified. Consequently, parameters of a function may not be used in default argument expressions. For example, the following declaration is illegal: int

DevX - Software Development Resource

The Underlying Type of bool and wchar_t

It is guaranteed that sizeof(char), sizeof(signed char) and sizeof(unsigned char) all equal 1. Applying sizeof to any other fundamental type returns an implementation-defined value. In particular, sizeof(bool) and sizeof(wchar_t) need