Codeguru Update eNewsletter – March 6th, 2007

March 6, 2007

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

___________________________ Sponsors


–> Editorial

–> Recently Published Books

–> New on CodeGuru: 
        ==> Button Arrays
– Lights
Out Game (in C#)
        ==> Database
– Forging Transact SQL Code with
        ==> .NET 3.0
– Important New Concepts in WPF
        ==> .NET
– Compressing/Decompressing Your Files
        ==> Threads
– Simplified
Thread Synchronization in Windows Vista
        ==> Visual
– How to Build Simple Event Log Montior/Watcher (Using TCP in
        ==> Web
– Creating Clean and Simple Pages

–> Discussion Groups — HOT Threads

        – Curious about if (ptr)
vs if (ptr != NULL) (C++)
Dangling Pointers (VC++)
CAsyncSocket as DLL (VC++)

–> Highlighted new articles on 
Eclipse Tip: Customize Your Feature Installation with Install
        2. Java Language
Integrity & Security: Uncovering
        3. Introducing Prototype
and Scriptaculous Part 1

– your search ends here
Jupiterimages offers online subscriptions and single
downloads for clipart, Web graphics, photos, footage and music

(including flash versions) via a comprehensive network of

design-oriented Web sites for industry professionals and
See what you’re missing.
Go to:,319y,1,dh1n,3138,jorm,i5r0

from the

Microsoft Windows Vista is here. You might not have it,
or more likely you might have already uninstalled it; however, it is here and
will slowly become the dominating operating system on new machines. As a
developer, you need to understand the impact of a new version of Windows on your
applications. Not only do you need to know the impact on applications you will be building, but also on those that you have already built.

Will your existing applications run on Vista? Will they
run without issue? It is interesting to note that Microsoft’s own Visual Studio
2005 was not a supported Vista application until after they issued a service
pack. Only with the service pack is Visual Studio 2005 supported on Vista.

What about the applications you’ve created?

When it comes to building new applications for Vista, in
the past I’ve mentioned .NET 3.0. This includes Windows Presentation Foundation
(WFC), Windows Communication Foundation (WCF), Windows WorkFlow (WF), and
CardSpace. It is important for me to state that .NET 3.0 isn’t all there is to
Vista development. In fact, if you are a hardcore C++ person, you might not touch .NET 3.0. Even so, Vista will impact you.

I’ve mentioned that thousands of API changes were made to
Vista. Numbers I’ve heard range from 7,000 to over 10,000 API type changes just
for Vista. These might impact your programs. What might impact you more is not
an API, but rather a “security feature.” The User Account Control (UAC) is
likely one of the most complained about features of Vista. Granted, it isn’t as
bad in the final product as it was in early pre-releases; however, it still is
perceived as an annoying dialog that gets in the way. Truth be told, it really
is a security feature that should be used. If left on, however, it can secure
Vista to the point of getting in the way of letting your applications install on
your users’ Vista machines. This is obviously something you’ll want to work
around when creating your installation procedures. (Note: You might have
seen the Mac commercials that make fun of this feature.

Vista also offers a number of new features that you can
use. Gadgets are little applications you can build and place on the desktop or
in the SideBar. These applications can provide access to your business logic, or
provide productivity enhancements to your users. Building Gadgets is a great option to consider when you are designing that next Vista application.

One cool feature of Vista is the desktop search. Although
this is nothing overly new, Microsoft has taken a good stab at adding this to
Vista. From the search window or from the Start menu, you can do a search that
will look for items on your system. This can include pictures, music, emails, or
any other items you might have tagged or allowed to be included. By using the
APIs that come with Vista, you can tap into this search from your applications.
More importantly, you could allow your own data items to be included in the searches, too.

Vista also includes better support for RSS feeds. Why go
to information? Tapping into the RSS features can allow you to make
interesting changes to your existing applications or possibly create an entirely new type of application. 

There is a lot more underneath the covers of Windows
Vista than just .NET 3.0. As you might know, in addition to Codeguru, I also
work with On DevX, we have posted a special report that covers just a
few of the topics you’ll want to know in regard to Vista. You can check out the list of articles in this special report at:,319y,1,cjf,9cnl,jorm,i5r0

After reviewing these, I believe you’ll agree that Vista is about more than just .NET 3.0.

Until next week…

L. Jones

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:

–> Professional
      By Zakas, McPeak, and Fawcett
for WROX
      620 pages for

–> Pro WF: Windows Workflow in .NET
      By Bruce Bukovics for
      720 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,319y,1,fka1,909i,jorm,i5r0

This week’s CodeGuru posts:

==> Button Arrays

– Lights Out Game (in
    By Bradley Jones
Just play a game of
Lights Out, or take some time to see an array of buttons put to use.,319y,1,blki,kn4w,jorm,i5r0

==> Database

– Forging Transact SQL Code with
    By Jeffrey Juday
If you’re haven’t
used CodeSmith for your TSQL coding yet, now’s the time. This template-based
code generator enables you to add fire-and-forget programming to your TSQL

==> .NET 3.0

– Important New Concepts in
    By Adam Nathan
Examine some of the main
concepts that WPF introduces above and beyond what .NET programmers are already
familiar with. 1,319y,1,6ikj,31ia,jorm,i5r0

==> .NET Tip

– Compressing/Decompressing Your
    By Eric Smith
One of the many new
libraries included with .NET 2.0 allows for compression and decompression of
files using the gzip file format. Find out how to use it.,319y,1,jvs0,2tpg,jorm,i5r0

==> Threads

– Simplified Thread Synchronization in Windows
    By Nick Wienholt
Within the new
threading and synchronization APIs that Microsoft added to the Windows SDK for
Vista, condition variables dramatically simplify the semantics of lock
acquisition and management.,319y,1,2t3s,asuj,jorm,i5r0

==> Visual Basic

– How to Build Simple Event Log Montior/Watcher (Using TCP in
    By aleksisa
Learn how to build a simple
event log “watcher” application to monitor event log changes on a remote

==> Web 2.0

– Creating Clean and Simple Pages
Alessandro Vernet
Learn why developers should want to create clean and simple
page code and discover two important measures to get on the path to clean and
simple pages. Professional Web 2.0 Programming author Alessandro Vernet explains
it all.,319y,1,epa4,jntg,jorm,i5r0


Check out the CodeGuru discussion forums at:,319y,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:

==> Curious about if (ptr) vs if (ptr != NULL)

==> Dangling Pointers

==> CAsyncSocket as DLL

Articles on

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

1. Eclipse Tip: Customize Your Feature Installation with Install
    By Peter Nehrer –
When developing an
Eclipse RCP-based application, you get to decide how to install it into the
end-user’s environment.,319y,1,fhse,kxfj,jorm,i5r0

2. Java Language Integrity & Security: Uncovering
    By Matt Weisfeld –
what goes on under the hood of an application is a beneficial process. Explore
how a class file is designed and how you can disassemble it.,319y,1,lf1g,c25n,jorm,i5r0

3. Introducing Prototype and Scriptaculous Part
    By Dave Crane and Bear Bibeault with Tom Locke –

Discover Prototype, the most popular JavaScript and Ajax framework
for low-level coding.,319y,1,d69t,hab1,jorm,i5r0


More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read