May 4, 2004 CodeGuru Newsletter

CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

==========================================================


CodeGuru Newsletter
May 4, 2004
http://www.CodeGuru.com

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


___________________________ Sponsors
________________________________


Wi-Fi Planet Conference & Expo
2004
_____________________________________________________________________


==========================================================
All
newsletters are sent from the domain “internet.com.”
If configuring e-mail
or Spam filter rules, please use this
domain name (not the entire “from”
address, which varies).

==========================================================



TOPICS:



–> Editorial –


… Things in the news …
… Quiz Question



–> New Articles on CodeGuru:


==> Algorithms
– [Updated] Geographic Distance and Azimuth
Calculations
==> C++
– Macros for C++ in C++
==> Controls

Adding MouseLeave and MouseHover Events to VB6 Controls
==> Debugging
& Error Handling
– Using Custom Exception Handlers to Restart Your
Application (C#)
==> Dialogs
– Making Windows Forms Pop Under
(C#)
==> Listview
– [Updated] A Very Useful Class to Display SQL SELECT
Results
– [Updated] Spying a File System (C++)
==> Misc. Tools

VSStub
==> Patterns
– Data Transfer Object Pattern Goes VB
.NET
==> Templates
– Generic Notifiers: Message Passing in
C++
==> Threading
– Windows Thread Pooling
==> Visual Basic
Today
– Completing the NUnit Project Template for .NET, Part 2
==>
Visual Studio 2005 “Whidbey”
– Cool Features I Like About Visual Studio 2005
“Whidbey”


–> Discussion Groups


–> Highlighted new articles on Developer.com


1. Term of the Week: Framework
2. A Look at the e-Biz+ Certification
3.
Spinning Your Code with XSLT and JSF in Cocoon
4. Thinking in Objects
5.
Java Glossary


/——————————————————————-
Wi-Fi
Planet Conference & Expo 2004 – The World’s Largest
Wi-Fi Business Event
– coming to a city near you! These are the
definitive events of the Wi-Fi
industry, where business users
gain the knowledge they need to make
strategic buying decisions
and where the industry charts it future
direction. Endorsed
by the Wi-Fi Alliance, don’t miss this must attend event
that is
making stops in Toronto, Baltimore, London, Tokyo, San Jose
and
more. Register today! www.jupiterevents.com
————————————————————–adv.-/


==========================================================
Comments
from the
Editor
==========================================================


… Things in the news…


Microsoft announced the beta for Microsoft(r) Office Live 
Communications Server 2005 (LCS 2005) today. This was codenamed “Vienna”. This
is a new edition of the 2003 version that is currently available. This server
provides instant messaging and presence-awareness. Nominations for the beta are
being taken by Microsoft for this product that is due to release by the end of
the year. http://www.internetnews.com/ent-news/article.php/3349021


Are you keeping your Windows systems up to date? Once again the big news is a
computer virus. This time it is Sasser. I received more than one call yesterday
from people who had been struck by the Sasser worm. If you were struck, there is
a removal tool available at Microsoft:


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,lpan,36a2,jorm,i5r0


For more information, see:


http://www.internetnews.com/dev-news/article.php/3348531


… Quiz Question!


This week’s quiz question comes from CodeGuru moderator, Gabriel Fleseriu.
Without compiling:


1. Is this legal C++? Why or why not?


int i = 0;
int *n= &i;
i++[n]–[n]++;


2. If this is legal, then what’s the value of i? Why?


Tune in to next week’s newsletter or stop by the feedback  forum if you
want to discuss the quiz.


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,f3eo,g0rg,jorm,i5r0


Until next week!


Brad!


—————————
Brad Jones
www.CodeGuru.com
—————————


… Recently 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:


https://www.codeguru.com/review-guidelines.php


–> How to Do Everything with Microsoft Office InfoPath 2003

(How to Do Everything)
By David McAmis for McGraw-Hill Osborne

450 pages for $24.99
http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,b918,bnhx,jorm,i5r0
Just
released!


–> Introducing Microsoft Office InfoPath 2003
By
Roger Jennings and Acey Bunch for Microsoft Press
400 pages for $45.00
http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,j4u8,12pk,jorm,i5r0

I talked to Roger Jennings at VSLive last month. This is one of his more
recent books.


==========================================================
New
& Updated Articles on
CodeGuru
==========================================================


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


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,fka1,909i,jorm,i5r0
 


This week’s posted CodeGuru articles:


==> Algorithms


– [Updated] Geographic Distance and Azimuth
Calculations
By andyf4i
This article presents the basics of how to do
geographic calculation for a spherical and ellipsoid Earth model, and provides
sample code that implements solutions to several interesting geographic calculations.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,kt0i,aeak,jorm,i5r0


 


==> C++


– Macros for C++, in C++
By Kate Gregory
Learn how
to write macros for C++ in Visual Studio.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,2ph3,apnc,jorm,i5r0


 


==> Controls


– Adding MouseLeave and MouseHover Events to VB6
Controls
By hspc
This article is about creating ActiveX controls in Visual
Basic 6 that have two extra mouse Events: MouseLeave, MouseHover.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,c1qm,f4mi,jorm,i5r0


 


==> Debugging & Error Handling


– Using Custom Exception Handlers to Restart Your
Application (C#)
By Tom Archer –
One often-overlooked ability of .NET is
that you can create a custom exception handler that will allow you to catch all
unhandled exceptions thrown during the execution of your application.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,9×57,d3uf,jorm,i5r0


 


==> Dialogs


– Making Windows Forms Pop Under (C#)
By Tom Archer
– 
Learn the steps required to shuttle pop-under windows behind all other windows in the z-order.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,ivth,4uem,jorm,i5r0


 


==> Listview


– [Updated] A Very Useful Class to Display SQL SELECT
Results
By Vitali Halershtein
Display the results of a SQL SELECT
operation. Many grid controls are available for VC++ developers, but this
control is small yet contains many features for developers and end users.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,dc1j,dgqh,jorm,i5r0


 


– [Updated] Spying a File System (C++)
By Vitali
Halershtein
How to create the basis for a file system spy application.


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,1ghc,eo7w,jorm,i5r0


 


==> Misc. Tools


– VSStub
By Per Nilsson
Provides a basic
implementation of the Developer Studio Object Model.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,ln6r,h1w4,jorm,i5r0


 


==> Patterns


– Data Transfer Object Pattern Goes VB .NET
By
Achtermeier Andre
How to implement the dto-pattern in VB .NET, so that the
client-side has nothing to know about the data structure.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,3gp,isxp,jorm,i5r0


 


==> Templates


– Generic Notifiers: Message Passing in C++
By
PlugwareSolutionsLtd
Notifiers make anonymous communication between objects
in a system possible. They are also easy to understand, providing a seamless
migration as new developers are introduced to a project. This article describes
the design and implementation of Notifiers in C++.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,8m0k,7q6j,jorm,i5r0


 


==> Threading


– Windows Thread Pooling
By
PlugwareSolutionsLtd
Thread pooling describes a technique by which threads of
execution are managed and to which work is distributed. Additional semantics
such as concurrency control may also be defined. Thread pooling is a nice way
to: Manage complexity, Make your applications scale, and Introduce new code while minimizing risk.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,7gf6,bohu,jorm,i5r0


 


==> Visual Basic Today


– Completing the NUnit Project Template for .NET, Part 2
By Paul
Kimmel
This article completes the project template by demonstrating how to
modify the supporting script to add a reference to import the
nunit.framework.dll, how to define the wizard launching file, add the VSDir file
entries, and we will take our new test library, created by the template, for a
spin around the block.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,fkt7,2nx0,jorm,i5r0


 


==> Visual Studio 2005 “Whidbey”


– Cool Features I Like About Visual Studio 2005 “Whidbey”
By Sonu
Kapoor
A first look at the latest version of Visual Studio 2005.


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,44n5,1t8i,jorm,i5r0


==========================================================
New
Articles on
Developer.com
==========================================================


Below are some of the new articles that have been posted to Developer.com
(http://www.developer.com).


1. Term of the Week: Framework
By Jim Minatel –
See
what the key components of a framework are and learn  why there’s more to
frameworks than .NET Framework, Struts, and Cocoon.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,cxqk,kj8v,jorm,i5r0


2. A Look at the e-Biz+ Certification
By Steve Rowe –

CompTIA, the makers of the popular A+, Network+, and Security+ exams, has
created an entry-level, vendor-neutral certification  named e-Biz+ that
examines one’s ability to work in an e-Business environment. Take a closer look
at this certification to see what it can do for you.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,4yaz,khct,jorm,i5r0


3. Spinning Your Code with XSLT and JSF in Cocoon
By
Michael Nash –
Explore the combination of the XML processing language
XSL with the newly released JavaServer Faces (JSF) standard API, using the
Apache Cocoon framework as an enabler for both.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,76bh,l0a9,jorm,i5r0


4. Thinking in Objects
By Matt Weisfeld –

Object-oriented development is a design technique rather than a coding
convention. In developing an OO model, you must focus much more on the design
than the code. To create a solid design, you must first understand the concepts
involved in designing the object model.



http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,hwwu,8lnt,jorm,i5r0


5. Java Glossary
By David Thurmond –
Confused by a
Java term? Look it up on the Java Glossary.


http://nl.internet.com/ct.html?rtr=on&s=1,vjv,1,f99c,ccia,jorm,i5r0 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Advertising:
If you are interested in advertising in our newsletters, call
Claudia at
1-203-662-2863 or send email to mailto:nsladsales@internet.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For
information about advertising opportunities, visit our media kit
http://www.internet.com/mediakit/salescontacts.html
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

For details on becoming a Commerce Partner, contact David Arganbright
on
1-203-662-2858
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

To learn about other free newsletters offered by internet.com or
to
change your subscription visit http://e-newsletters.internet.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


internet.com’s network of more than 160 Web sites is organized into 16
channels:


Developer http://www.internet.com/sections/webdev.html

DevX http://www.internet.com/sections/devx.html
Downloads
http://www.internet.com/sections/downloads.html
EarthWeb
http://www.internet.com/sections/earthweb.html
Graphics
http://www.internet.com/sections/graphics.html
Interactive
Marketing http://www.internet.com/sections/marketing.html
International
http://www.internet.com/sections/international.html
Internet
Lists http://www.internet.com/sections/lists.html
Internet
News http://www.internet.com/sections/news.html
Internet
Resources http://www.internet.com/sections/resources.html
IT
http://www.internet.com/sections/it.html
Linux/Open
Source http://www.internet.com/sections/linux.html
Small
Business http://www.internet.com/sections/sb.html
Windows
Technology http://www.internet.com/sections/win.html
Wireless
Internet http://www.internet.com/sections/wireless.html
xSP
Resources http://www.internet.com/sections/xsp.html


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Looking for a job? Filling an opening? – http://jobs.internet.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


This newsletter is published by Jupitermedia Corporation
http://internet.com – The Internet & IT
Network
Copyright (c) 2004 Jupitermedia Corporation. All rights
reserved.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
For
information on reprinting or linking to internet.com content:
http://internet.com/corporate/permissions.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

More by Author

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends & analysis

Must Read