The Latest

DevX - Software Development Resource

Executing a Member Function After main() Terminates

You can execute any member function or any other execution after a termination of main() function by using “#pragma exit.”Here’s the syntax: #pragma exit [priority] //withoutsemicolon Now, here’s an example:

DevX - Software Development Resource

Update SQL Server records via HTTP

Thanks to the SQL Server extensions for the Web and XML, it is now possible to query a SQL Server database (and get the result as XML) as well as

DevX - Software Development Resource

3 Key Coding Tips for BREW Developers

Tip #1: Code for the phone, not the emulator. Handsets are small form factor, constrained devices ? so relative to what you’re used to on the desktop, phones have limited

DevX - Software Development Resource

Create zero-elements arrays

The .NET framework lets you create two types of “empty” arrays: unitialized arrays and arrays that are initialized with zero elements. Uninitialized arrays are actually array variables that are set

DevX - Software Development Resource

A For Each loop that iterates in reverse order

The For Each loop always iterates orderly on all the elements of an array or a collection (more precisely, on all the elements of a class that implements the IEnumerable

DevX - Software Development Resource

A generic benchmark routine

You often need to benchmark a piece of code, which you usually do as follows: Dim start As Date = Now’ insert here the code to benchmarkDim elapsed As TimeSpan

DevX - Software Development Resource

Retrieve file version information

The System.Diagnostics.FileVersionInfo class lets you easily read file version information without having to call Windows API functions (as you have to do under previous VB versions). This class has a

DevX - Software Development Resource

Reduce context overhead for COM+ components

Instances of configured components, that is, components configured in COM+, get runtime services owing to context objects. When you instantiate a COM+ component, your instance will live in a context

DevX - Software Development Resource

Keep Your Projects Intact

VB has always gone out of its way to take care of mundane housekeeping tasks without bothering you with the details. But sometimes the best intentions can create unintended problems.

DevX - Software Development Resource

A New Look at the Select Case

Who says the Select Case can evaluate only one statement? Try Select Case True instead of the If Related Posts Are Design Patterns Really Useful?What Android M Means for the

DevX - Software Development Resource

Split Strings Cleanly, Redux

What if you want to split an array on more than one delimiter? Adding a few lines of code and using recursion can enhance the function to handle multiple delimiters.When

DevX - Software Development Resource

Add a Picture Preview Property Page

Defining a public property in a user control as Picture (or StdPicture) provides the standard ellipsis next to the property name in VB Related Posts Fans disappointed as GTA 6

DevX - Software Development Resource

Check for Errors While Connecting to a Database

When connecting to a database, you should check for errors and return a descriptive user-friendly error message. This code calls an error handler routine after connecting to the database. If

DevX - Software Development Resource

Pass a Parameter to XSL

In XSL: ‘define parameter name and set default value In ASP: ‘set xsl objectDim xslFile, xslDocxslFile = “MyXsl.xsl”Set xslDoc = Server.CreateObject(“Msxml2.DOMDocument”)xslDoc.async = falsexslDoc.load(Server.MapPath(xslFile))’pass parameterset param=xslDoc.selectSingleNode(“//xsl:param[@name=’loginName’]”)param.setAttribute “select”,”‘Bill'” Related Posts Israeli Women

DevX - Software Development Resource

Faster string comparison with the Is operator

.NET strings are objects, so what you store in a String variable is actually a reference to a String object allocated in the managed heap. Even though the VB.NET compiler

DevX - Software Development Resource

Faster string comparisons with CompareOrdinal

You can compare strings in many ways under VB.NET: by using the = operator (or another comparison operator), with the Equals method (which the String class inherits from System.Object), or

DevX - Software Development Resource

Disable .NET security

The .NET Framework enforces secuity at several levels. For example, assemblies downloaded from the Internet have very limited permissions (especially after installing the Service Pack 1 of the Framework). This

DevX - Software Development Resource

Prevent a second process instance from running

VB6 developers can use the App.PrevInstance property to check whether there is another instance of the same process already running on the current machine. This property isn’t available any longer

DevX - Software Development Resource

Process individual pixels of a bitmap

While you can access individual pixels of a bitmap by means of the GetPixel and SetPixel methods of the Bitmap object, in practice you seldom want to use these methods,