The Latest

DevX - Software Development Resource

Support COM+ constructor strings in serviced components

Having a VB6 component support a COM+ construction string requires that you implement the IObjectConstruct interface and its only method, Construct. The .NET ServicedComponent class implements this interface internally and

DevX - Software Development Resource

Take advantage of COM+ object pooling

VB6 objects can’t be pooled under COM+, because they are apartment threaded. This restriction is void with VB.NET objects (and all .NET objects in general), because they are free-threaded. To

DevX - Software Development Resource

Avoiding Recursive Header Includes

In C/C++ header files, it’s often necessary to include the header files of sub classes or classes which are used. For example: #include “a.h”

DevX - Software Development Resource

Using Prototypes Rather than RTTI

In some situations, you may want a certain data member of two different objects to be identical. For example, suppose you are writing a graphics program that will render a

DevX - Software Development Resource

Avoid Redundant Function Prototypes

In common top-down C/C++ programming, the main() function is written first, and then the functions that it calls, and then in turn the functions those functions call. For relatively small

DevX - Software Development Resource

Tail Recursion

Tail recursion is a special way of writing recursion in C/C++, which minimizes the time and memory, this can be done just by storing the value of variable in some

DevX - Software Development Resource

Web Application Security–The Next Evolution

The Future of Web Applications: Web ServicesToday’s global Internet environment is a muddled mix of different operating systems, technologies, and protocols?all which are widely dispersed throughout the world. This mixture

DevX - Software Development Resource

SaveBinaryData – Serializing an object to file in binary format

‘ Serialize an object to file in binary format’ It can handle types that the SOAP serialization can’t’ Requires:’ Imports System.IO’ Imports System.Runtime.Serialization.Formatters.BinaryPrivate Sub SaveBinaryData(ByVal path As String, ByVal o

DevX - Software Development Resource

Color2Html – Retrieving the HTML code for the specified Color

‘ Return the HTML code for the specified Color’ Example: MessageBox.Show(Color2Html(Color.Red)) ==> #ff0000Function Color2Html(ByVal clr As Color) As String Return “#” & clr.ToArgb().ToString(“x”).Substring(2)End Function Related Posts Oracle, Salesforce, Microsoft lead

DevX - Software Development Resource

Four Ways to Use Excel as an Internet Reporting Tool

harting and reporting can involve a lot of work. Numerous vendors have made a business out of selling their third party charting and reporting tools. High-end vendors such as Microstrategy,

DevX - Software Development Resource

Abstract classes as interfaces

In software design, you should plan ahead the interface of a class hierarchy to make sure that all related concrete classes share a common interface. This can be achieved by

DevX - Software Development Resource

Use RTTI for Dynamic Type Identification

++ creators introduced Runtime Type Information (RTTI) more than a decade ago. Yet even today many programmers arent fully aware of its benefits and perils. In the following sections, I

DevX - Software Development Resource

Developing Web Services in C++

omewhere north of a million. That, last time you counted, is the number of lines of C and C++ code keeping your organization running. And that is the number that

DevX - Software Development Resource

What’s New in BREW Version 2.0

kay, maybe you aren’t up to speed on the features of BREW version 1.x, or perhaps you’ve not yet even investigated this technology. So, before we jump into the improvements

DevX - Software Development Resource

Applying Some Peer Pressure

s a big fan of atmosphere and thematic environment, I queued up the “Blade Runner” Soundtrack on my computer. Vangelis’ ghostly ambience, like the subject of this editorial, is futuristic

DevX - Software Development Resource

Use Globally Unique Identifiers in Access and SQL Server

Globally unique identifiers (GUIDs) distinguish hardware, software, and users. Originally, Microsoft designed the GUID value for use with ActiveX controls; Windows uses a 128-bit GUID to identify ActiveX controls. A

DevX - Software Development Resource

COM+, ErrObject, and Co.

am sure you have already found out why you should be wary of static, application-global and module-global variables in COM+ components written in VB. As for me, one wonderful day