Build Custom Code Generators in C#
uite simply, code generation involves taking a small amount of input and generating a large amount of code from it. Often the structure of the output is very complicated and
uite simply, code generation involves taking a small amount of input and generating a large amount of code from it. Often the structure of the output is very complicated and
It’s really simple to determine whether a form is open?simply use My.Application and My.Forms in .NET: Dim frm As Form For Each frm In My.Application.OpenForms If frm Is My.Forms.TheFormINeed Then
Either of these methods help make your Web site stand out in crowded favorites and in browsers. Your logo should be a ICON file (.ico) of 16 x 16 Pixels.
This tip shows you how to develop XQuery queries that may call any other method. The method called in this tip is java.lang.Math.random: declare namespace m=”java:java.lang.Math”;let $r:=m:random()return $r Related Posts
rom the beginning, the Tag property has been a Visual Basic programming staple. Any time you want to attach a little extra bit of information, you can put it in
f you have ever wanted to experiment with robots but thought they were too expensive or complicated, think again. Earlier this year, Microsoft released a Community Technical Preview (CTP) of
If you’re running SQL Server under the Local System account, it will not have rights to backup the database on a network share. You’ll need to change the SQL Server
VB.NET supports String.ToCharArray. You can use it to change a string into an array of characters so you can easily iterate through them: Dim intCounter As Integer Dim chrArray() As
This tip shows you how to bulid an entity resolver to “change” a public indentifier into a system identifier. The idea is to override the resolveEntity method of the EntityResolver
ince I wrote a DevX article on the first beta release of Java Standard Edition (SE) version 6 in February of this year, two new early-access versions have been released.
hen the .NET framework instantiates an object, it allocates memory for that object on the managed heap. The object remains on the heap until it’s no longer referenced by any
Calling constructors for the data members of the object of a class results in an overhead process which calls the constructor in the main function. You can reduce this overhead
If you’ve ever loged out and back into Windows XP to run a program under other user’s privileges, you don’t have to anymore. You can run the program as a
The following tip shows you how to combine Java and SAXON 8 in order to evaluate XQuery expressions. This application presumes that the XQuery expression is in an external file,
This function replaces all occurences of numbers in the input string with ‘#‘ and returns the replaced string. It recognizes integers, floating point, and negative numbers. It will not replace
his article is the second part in a three-part series about Python 2.5. The first part discussed the major changes and enhancements to the Python language itself. This part introduces
o me, half the battle of starting development on a new mobile platform is fighting issues with new tool chains. Sometimes, it’s maturity issues: the tools just aren’t ready. Other
here are tons of tools developers can use to inspect code they write at the code level, and some even provide metrics about how complex aspects of the code are,
ithout a doubt, Web services have hit the mainstream and have demonstrated their value. They were designed largely to address interoperability and distributed computing and both goals were realized by
rganizations the world over are looking for better flexibility and higher productivity. They need software applications that are not only long-lasting but also adaptable to change. Business process management (BPM)
This code shows you how to calculate the angle between two lines using vectors and an inverse cosine function: Public Function getAngleBetweenLinesVect(commonX As Single, commonY As Single, X1 As Single,
It’s common to want to assign several styles to an element. Normally, you’d do that this way: obj.style.position = ‘absolute’;obj.style.top = ‘0px’;obj.style.left = ‘0px’;… etc … However, there’s a way
This utility tool logs the information when you build the assembly and is packaged along with the .NET Framework Tools. It allows you to view all the assembly bindings in
Suppose you want to place your cursor in a text field at a desired position. Your text field has a display size of 20 characters and a data size of
okia reports that STL support has been one of the most requested features among Symbian developers. This is no surprise. In 2006, using C++ without STL is like driving a
ne of the most useful features of the Microsoft Enterprise Library is its adaptability; all the application blocks are fully extensible. Like ASP.NET itself, Enterprise Library implements a pluggable architecture
icrosoft has recently launched the Windows Mobile 5.0 platform for Pocket PCs and Smartphones. With the proliferation of Windows Mobile-based devices in the marketplace, companies are gradually mobilizing their enterprising
ost Windows users are familiar with tool tips?the little “balloon” that pops up when you position your mouse over an icon. Tool tips are very useful user interface (UI) enhancements
Many object-oriented programming languages allow a constructor to delegate its object initialization to another constructor of the same class. But in C++98, this isn’t permitted. Consequently, a C++ class with
n April 6 of this year, Microsoft announced that SQL Server Mobile Edition (SQL Server Mobile) would be replaced later this year with Microsoft SQL Server 2005 Everywhere Edition (SQL