April 6, 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
April 6, 2004
http://www.CodeGuru.com


This newsletter is part of the

Developer.com, EarthWeb, and internet.com networks.
Jupitermedia Corporation


___________________________ Sponsors
________________________________
Microsoft
ISPCON Spring 2004 Conference
&
Expo
_____________________________________________________________________


==========================================================
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).

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


/——————————————————————-
Win
$25,000 for your Windows Mobile application!
Microsoft hosts $25,000
competition for Windows Mobile
Applications. Developers are invited to submit
their best
applications for Windows Mobile-based Pocket PCs
and
Smartphones. Four grand prize winners receive US $25,000
and
application distribution. Be one of the first 150 to submit before
May
30, 2004, and receive free logo-testing – a US $500 value!
Get started now
at
http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,brdv,hffv,jorm,i5r0
————————————————————–adv.-/



TOPICS:



–> Editorial –
… Quiz Question
… Releases and
News


–> New Articles on CodeGuru:


==> Algorithms
– [Updated] MFC Template Class CLongInt
==>
Beginning C#
– C# FAQ 2.1 – How do I begin programming with C#?
– C# FAQ
2.2 – What Are Some of the Different C# Editors Available?
==> C++ &
MFC
– Manage the Physical Dependencies of a Project to ReduceCompilation
Time
– Sliding Dialogs
==> Edit Control
– Transparent Edit Using a
Pattern Background Brush
==> Forums
– Hottest Forum Q&A on CodeGuru
– from the week of March 22nd, 2004
==> Internet (ASP.NET)
– A Simple
and Dynamic BreadCrumb Web User Control for ASP.NET
==> Managed C++ –
Interop
– Consuming Unmanaged C++ Class Libraries from .NET Clients
==>
Misc.
– Best Practices and Standards in EAI
==> Network
– Spoofing
the ARP Table of Remote Computers on a LAN
==> Remoting
– .NET
Remoting in Visual C++
==> Visual Basic .NET
– One Just Needs to Know
Where to Look
==> Windows Longhorn (Avalon)
– Databinding and the
Avalon UI
==> Windows Services (.NET)
– Using Timers in a Windows
Service
–> Discussion Groups


–> Highlighted new articles on Developer.com


1. Business Intelligence Defined
2. Lightweight
Objects
3. Enlisting Java in the War Against Email Viruses, Part 2, A Much Faster Program


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


 


… Quiz Question!


It seems that 2004 just started and it is already April.
For most people the time has changed and summer is getting close!


As a change of pace, I thought I’d post a little “quiz
question” in the newsletter. This will be a relatively easy question to start with:


Are all three of the following valid
declarations for a character pointer?


const char * myPtr = ‘A’;
char *
const myPtr = ‘A’;
const char * const myPtr = ‘A’;


What is the difference between each of the valid ones?


 


To keep you on your seat’s edge, I’ll post the answer
next week! If you can’t wait, I’ve set up a thread in the forums where you can discuss this!


https://www.codeguru.com/forum/showthread.php?s=&threadid=290003


If you like the idea of a simple question being posted each week, let me
know. Additionally, if you have a good question (and the answer), send them to
me and I’ll consider it for a future newsletter!


… Releases and News


For those of you in the United States, the final DVD for the Matrix trilogy released today!


http://books.internet.com/books/B0001BKAEY

While
this might be big news to some, it is overshadowed by the bigger news of the
week–no, not the drop in price for the XBox, but rather the news that Sun and
Microsoft have kissed and are making up! Okay, maybe there was no kissing
between Scott McNealy and Bill Gates; however, they have come to an agreement on
the antitrust and patent suits.


With a payout that is estimated at just under $2 billion
(that is billion with a ‘be’), they are ready to move forward together. Michael Singer wrote about this in the following news story:


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

In
addition to looking forward to all the money, Sun is also restructuring. This
means about 3,300 people at Sun may be looking for new jobs. For more on this,
you can check out Clint Boulton’s news story on Sun:


http://www.internetnews.com/bus-news/article.php/3334991

It
will be interesting to see how the new relationship between these two rivals
progresses. If interoperability between .NET and Java are a result, then it can
only help us as developers.


Until next week!


Brad!
—————————
Brad
Jones
www.CodeGuru.com
webmaster@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


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

for
submission guidelines.


–> Visually Learn Visual Basic .NET in 12
Hours

By Rick Dobson, Ph. D. for Apress
3 DVDs for $34.95
http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,2mtz,k726,jorm,i5r0
Okay,
this isn’t a book. Rather, it is a three DVD set with over 12 hours of
presentation as well as labs, code, and slides.



==========================================================
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,tki,1,fka1,909i,jorm,i5r0


This week’s posted CodeGuru articles:


==> Algorithms


– [Updated] MFC Template Class
CLongInt


By Thomas Holte
The template class template class
CLongInt supports long integer arithmetic. The template parameter bits specifies
the size of a CLongInt in bits.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,4rr5,8h6g,jorm,i5r0


==> Beginning C#


– C# FAQ 2.1 – How do I begin programming with
C#?


By Anand Narayanaswamy
Learn about some of the
different compilers available for programming with C#.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,ctfw,dxrc,jorm,i5r0


– C# FAQ 2.2 – What Are Some of the Different C# Editors
Available?


By Anand Narayanaswamy
A quick glance about the
various editors available for programming with C#



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,4cl,5xy7,jorm,i5r0


==> C++ & MFC


– Manage the Physical Dependencies of a Project
to Reduce Compilation Time


By Zeeshan Amjad
We make our projects in different
files, not in a single file. We will do this because we want to reduce the
compilation time during the development as well as reuse the code written in different files.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,1xfy,jh1h,jorm,i5r0


– Sliding Dialogs


By Ejaz Anwer
Derive your dialog class from
CFloatingDialog and a couple of settings. You can create the sliding effects of
the dialog in left, right, up, down and center directions from the other directions.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,dbr4,juqf,jorm,i5r0


==> Edit Control


– Transparent Edit Using a Pattern Background
Brush


By Jose Reyes
This article explains how to create a
transparent edit control. Instead of using a NULL_BRUSH for the CtlColor
message, we create a pattern brush using a chunk of bitmap from the parent
window from the place where the editor is going to be shown.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,1yrq,aykk,jorm,i5r0


==> Forums


– Hottest Forum Q&A on CodeGuru – from the
week of March 22nd, 2004


By Sonu Kapoor
Lots of hot topics are covered in the
Discussion Forums on CodeGuru. If you missed the forums this week, you missed
some interesting ways to solve a problem.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,67l8,zbh,jorm,i5r0


==> Internet (ASP.NET)


– A Simple and Dynamic BreadCrumb Web User
Control for ASP.NET


By Gibi
Ever thought about the breadcrumbs in Web
sites? Here is a simple but dynamic breadcontrol that can remember query
strings.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,9trr,10tx,jorm,i5r0


==> Managed C++ – Interop


– Consuming Unmanaged C++ Class Libraries from
.NET Clients


By Andreas Wieberneit
Learn how Managed C++ code can
wrap Unmanaged C++ class libraries so they can be used from .NET clients written
in C# or VB.NET.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,c2dh,m3ec,jorm,i5r0


==> Misc.


– Best Practices and Standards in
EAI


By Syed Hameed
Best Practices and Standards in EAI
must be practiced for reducing costs and increasing the effeciency for any EAI application.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,i92y,8fx4,jorm,i5r0


==> Network


– Spoofing the ARP Table of Remote Computers on
a LAN


By Gordon Ahn
ARP spoofing, also called ARP Cache
poisoning, is a hacking method to spoof the contents of ARP table in another
remote computer on the LAN. For one computer to  connect to other computer
on IP/Ether network, two addresses are needed. One address is MAC address, and
the other is IP address.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,epqk,8lgp,jorm,i5r0


==> Remoting


– .NET Remoting in Visual C++


By Kate Gregory
Remoting is one of the three
techniques available on the CLR for creating distributed applications.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,d59f,a4vf,jorm,i5r0


==> Visual Basic .NET


– One Just Needs to Know Where to
Look


By Paul Kimmel
The Data Form Wizard is a tool in VB6
that permits you to pick a table, and it generates a data-aware form and
incorporates that form into your project.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,8ln2,ghho,jorm,i5r0


==> Windows Longhorn (Avalon)


– Databinding and the Avalon UI


By Jason Nadal
Graphics objects, those from the
MSAvalon.Windows.Shapes namespace, can be manipulated through a number of
different types of animations.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,6mdq,ifoj,jorm,i5r0


==> Windows Services (.NET)


– Using Timers in a Windows Service


By Mark Strawmyer
Learn how to create a Windows
Service that takes an action on a scheduled interval by using classes in the
System.ServiceProcess.ServiceBase and System.Timers namespaces, among others.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,j5sz,l7se,jorm,i5r0


/——————————————————————-
ISPCON
SPRING 2004-Washington DC Hilton & Towers/April 14-16 *
ISPCON shines the
spotlight on key issues facing today’s
competitive Internet Service
Provider. Learn how to better
optimize your network, control and secure your
data, manage
and grow your customer base and find out how regulatory

trends affect you. It’s the latest in everything ISP – from
wireless
Internet services to email management and security
to your front and back
offices. Register now! www.ispcon.com
————————————————————–adv.-/


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


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


1. Business Intelligence Defined
By
Jim Minatel –
If you are not already familiar with the term Business
Intelligence, now is a good time to start learning.

http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,t04,4ps,jorm,i5r0


2. Lightweight Objects
By Robert
Bogue –
See how object-oriented design doesn’t have to lead to performance problems.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,cbn9,11oi,jorm,i5r0


3. Enlisting Java in the War Against Email
Viruses, Part 2, A Much Faster Program
By Richard G. Baldwin –

Baldwin provides a much faster way for you to prevent email-borne viruses from contaminating your email inbox.



http://nl.internet.com/ct.html?rtr=on&s=1,tki,1,c1c9,4amh,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 or mailto:commerce-licensing@internet.com

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

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