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.
It’s not uncommon that ASP.NET applications have the need to use a personal .config file to write some runtime information. Since ASP.NET applications are not granted the permission to create
Writing a transactional COM+ component with VB.NET is as simple as applying the Transaction attribute to a class that inherits from System.EnterpriseServices.ServicedComponent: Imports System.EnterpriseServices< Transaction()> Public Class BankTransfer Inherits ServicedComponent
COM+ 1.5 (provided with Windows XP) has an interesting feature that is missing in COM+ 1.0: the ability to disable entire COM+ applications or just their individual components. You can
COM+ 1.5 has the ability to run any server application as a NT service, so that the application is up and running when the machine reboots, before any client makes
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
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
To write a function like swap(datatype1, datatype2) that will take any two datatypes in its parameter and swap their values, use function templates.For example, to implement a generic swap function:
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”
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
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
The importance of secure Web transactions is increasing, not only for online commerce but the maintenance of private corporate intranets as well. However, most users rely on their browsers and
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
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
enerally, when a good programmer has to design a type (or a hierarchy of types), he does an analysis of the problem and then starts to write properties and methods
‘ Return the array of IP addresses for the local host’ Note: Requires Imports System.Net’ Example:’ Dim ipa As IPAddress’ For Each ipa In GetLocalHostIpAddresses()’ Debug.WriteLine(ipa.ToString())’ NextFunction GetLocalHostIpAddresses() As IPAddress()
‘ 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
‘ Return the OleDbType that represents the specified system type’ This is particularly useful when you have a DataTable and want to create a ‘ OleDbParameter for onw of its
‘ Deserialize an object from a file in binary format’ It can handle types that the SOAP serialization can’t’ Requires:’ Imports System.IO’ Imports System.Runtime.Serialization.Formatters.BinaryPrivate Function LoadBinaryData(ByVal path As String) As
‘ 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
Printing con be quite difficult in VB.NET (or any other .NET language), especially if you not only have to print plain text, but also tables, images, bulleted lists, text with
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,
hen building complex desktop applications, different individuals or groups of developers often need to collaborate. On some projects, you can separate the layers of the system and assign different individuals
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
++ 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
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
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
arlier this year, Amazon quietly exposed a set of Web services that can be used to allow any application to find and display Amazon product information. The Web services are
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
hile writing an earlier article (see “Build a Touch Utility with .NET”), which describes a console application to set file dates and times, I struggled with the problem of parsing
year ago, if someone had asked me to develop an interactive Web site, I’d have said, “Sure, me and what magic genie?” Fortunately, for those of us with little expertise











