Codeguru Update eNewsletter – October 3rd, 2006

CodeGuru Newsletter
October 3, 2006

This newsletter is part of the, EarthWeb, and networks.
Jupitermedia Corporation

___________________________ Sponsors
Pegasus Imaging


–> Editorial –
–> Recently Published

–> New on CodeGuru:
– Managing Nested GridView
– Designing a SQL Service Broker Control
        ==> Error
– Redirecting Configuration with a Custom
        ==> Graphics /
– Animate a Modal Dialog
– In Search of a Perfect Singleton
==> Office
– Report Solution Patterns and Recipes: Creating a Business
– Spreadsheets in ASP.NET
– .NET Tip: Creating a Password-Checking
– Thunking in Win32

–> Discussion Groups — HOT
        – Tab control –
Lparam (VC++)
        – Visual Basic Net,
what a mess. (VB.NET)
        – Database

–> Highlighted new articles on 
        1. An
Introduction to Catastrophe
        2. Propagating
Weblogic 8.x Portals
Understanding the 2D Discrete Cosine Transform in Java, Part 2

applications for document imaging, forms processing,
medical imaging,
photo/color imaging, and video. Pegasus Imaging
offers toolkits and
applications for image capture, viewing,
editing, scanning, annotation,
printing, compression (JPEG2000,
TIFF, PDF, more), barcode, OCR, ICR, OMR,
and medical DICOM. Toolkits
are delivered as .NET, COM controls, VCLs, DLLs
and applications.,2r91,1,8bw5,2f74,jorm,i5r0

from the

When you first start working with Windows Vista, you will find that there are
a number of little things that have changed. You might initially think that it
is all cosmetic with a few new annoyances, such as the User Account Control
thrown in. The more you begin to use it, however, the more you will realize that
Microsoft has truly made some big changes and has done quite a bit of tweaking
to their operating system.

Over the coming months, I’ll talk about some of these features in the
newsletter. Additionally, I’m sure that the number of articles on Vista related
topics will increase on the site as well.

Vista will impact you as a developer — from the changes in some of the
common dialogs, to the way things look, to the changes in security and memory
usage, to the addition of .NET 3.0 support. These and many other things are
going to impact you as a developer.

With Vista’s planned release now being measured in weeks instead of years, it
is about time to start looking at it. Of course, it isn’t a released product
yet, so missing drivers and screen glitches still riddle the product.
Regardless, it is probably something you are going to want to start looking at
soon if you haven’t already.

There are a few things I found really cool in Vista. These don’t necessarily
impact your development, but if you take a look at Vista, then check out

Using a USB drive’s fast flash memory to
boost your computer’s RAM. This is simply a smart addition.

RAM is there, so why not use it? Instead of
letting RAM sit idle as in prior versions of Windows, Vista will guess at what
you are going to do next and try to preload things into memory. With access to
the hard drive being the factor that slows down your system the most, this
feature can save a lot of time if the guessing is good.

Icon Previews:
Chances are you have heard of the Aero
interface if you have looked into Windows Vista at all. This new interface
includes a lot of “eye candy.” One feature that is not just hype is icon
previews. Icons show you what they represent. For example, if you have a folder
that contains pictures, the icon is a folder containing images of the pictures
in the folder. Even more valuable are the previews you get when you hover over
task bar buttons. In this case, instead of just getting a pop-up tip box saying
what the button points to, you also get a small preview of the window. This
makes it much easier to find the right window. The same previews are presented
when you use Alt+Tab. This is eye candy that actually is helpful! The catch,
because there is always a catch, is that you have to be running the Aero
interface that requires a video card with at least 128 Bb of memory. If you have
less than that, you don’t get any of the eye candy or the cool previews.

Speech Recognition:
Speech has been weak in the past. It
still has a long way to go; however, it is a lot closer to prime time. Windows
Vista has included a built-in speech recognition program. By using the tutorial,
you can quickly learn to use your microphone to control windows as well as to do
dictation. I actually used the speech recognition in Vista to open Internet
Explorer, go to the Codeguru forums, and enter a post. No keyboard or mouse were
required. It wasn’t perfect, but it worked well enough to mention it here!

These are just a few features of Vista. In the near future, I’ll mention some
controls and other features that might impact what you are doing as a developer.
Like it or not, Vista is coming. While it might not seem ready now, there is a
good chance that it truly will be released by the end of the year — and that is
only a few months away!

Until next week…

Bradley L.

Published Books

For those of you keeping up by reading books. The following are just a few of
the new books that have been recently released.  If you’ve read any of
these, feel free to write a review to be posted on CodeGuru. See the
submission guidelines at:

–> Fundamentals of Game Design

      By Ernest Adams and Andrew Rollings
for Prentice Hall
      600 pages for

–> JavaScript(tm) Phrasebook: Essential Code and Commands

      By Christian Wenz for Sams
      240 pages for

–> Professional Unix Shell Programming

      By Larry A. Walker for BookSurge
      320 pages for

& Updated Articles on

Following are short descriptions of new articles on CodeGuru. If you are
interested in submitting your own article for inclusion on the site, then you
will find guidelines located at,2r91,1,fka1,909i,jorm,i5r0

This week’s CodeGuru posts:

====  Articles  ====

==> Controls

– Managing Nested GridView Controls
Paul Kimmel
There’s an easy way to manage the complex ASP.NET presentations
that involve nested grids and controls. Learn a reliable approach that leverages
the observer pattern.,2r91,1,lbwr,iqnt,jorm,i5r0

==> Database

– Designing a SQL Service Broker Control
    By Jeffrey Juday
SQL Server Management
Studio just doesn’t cut it for complicated configuration and monitoring
implementations. Learn how to implement your own SQL Service Broker (SSB)
control bus solution to serve the needs of complex SQL Server-based messaging

==> Error Handling

– Redirecting Configuration with a Custom

    By Stefan Schackow
Explores this
helpful technique presented by Wrox author Stefan Schackow for working in
ASP.NET in multiple environments from testing, to staging, to live, to backup

==> Graphics / Dialogs

– Animate a Modal Dialog
    By Marius
Learn how to create a modal dialog with animations when shown or

==> Java

– In Search of a Perfect Singleton
By The Saint
how one person tried to come up with the perfect singleton. The article explores
real-time experience and explains in the common developer’s perspective.,2r91,1,goe7,57hv,jorm,i5r0

==> Office Development

– Report Solution Patterns and Recipes: Creating a Business
    By Paul Turley
WROX author Paul
Turley shows us how to create a Business Scorecard that mimics the Microsoft
Office Business Scorecard Manager.,2r91,1,7s2m,2h10,jorm,i5r0

– Spreadsheets in ASP.NET
    By Uday
Kiran Maloth
Finally, a spreadsheet can look good.,2r91,1,3grk,ed8h,jorm,i5r0

==> Security

– .NET Tip: Creating a Password-Checking
    By Eric Smith
Password security is an
easy way to tighten access to any application. Use this function to check a
password against a set of rules, as well as a set of previously used

==> System

– Thunking in Win32
Learn about an approach to creating thunks/trampolines to non-static
member functions in 32-bit VC++.,2r91,1,7qig,iniw,jorm,i5r0


Check out the CodeGuru discussion forums at:,2r91,1,bcr8,cx5j,jorm,i5r0

Forums include Visual C++, General C++, Visual Basic, Java, General
Technology, C#, ASP.NET, XML, Help Wanted, and much, much, more!


Some of the current threads with the most activity are:

==> Tab control – Lparam

==> Visual Basic Net, what a mess.

==> Database

Articles on

Below are some of the new articles that have been posted to (

1. An Introduction to Catastrophe
    By E. M. Bennatan –
At what
point should we define a software project as a catastrophe? What are the
criteria for taking the drastic step of halting all activities, and how do we go
about reassessing the project? And, most importantly, how do we go about getting
the project moving again?,2r91,1,fptm,9rtg,jorm,i5r0

2. Propagating Weblogic 8.x Portals
Scott Nelson –
The propagation tool is here to rescue you from late hours
and tedious tasks deploying your portal applications from staging to production
(not to mention from developemnt to integration and integration to staging).,2r91,1,ghfw,hz1c,jorm,i5r0

3. Understanding the 2D Discrete Cosine Transform in Java, Part
    By Richard G. Baldwin –
Learn how to
sub-divide an image before applying a forward and inverse 2D-Discrete Cosine
Transform similar to the way it is done in the JPEG image compression


More by Author

Must Read