April 13, 2004 Newsletter

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



CodeGuru Newsletter
April 13, 2004
http://www.CodeGuru.com

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


___________________________ Sponsors
________________________________

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

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


/——————————————————————-



Join the Microsoft(r) Empower Program for ISVs today.
Get
the tools and technologies you need to help you create innovative software
solutions faster. Members receive internal use licenses, five MSDN Universal
subscriptions and newsgroup support to help develop their products, and
marketing resources to help promote them. Sign up now for only $375, and receive
a $500 readiness training voucher!


http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,hxcy,76h3,jorm,i5r0

————————————————————–adv.-/



TOPICS:



–> Editorial –

         … CodeGuru
Badges
         … Quiz
Question
         … Releases and
News



–> New Articles on
CodeGuru:

         ==>
Beginning C#
        – C# FAQ 2.4 – How do
I build a C# application using  Visual C# .NET
2003?
        – C# FAQ 2.3 – How do I
build a C# application using 
Command 
        ==>
Databases
        – A Practical Guide to a
Post-Relational Database for .NET:
Matisse
        ==> Edit
Control
        – Implement a Console
Window Using an Edit Control
       
==> Forums
        – Hottest Forum
Q&A for the week of April 4th,
2004
        – Hottest Forum Q&A for
the week of March 29th, 2004
       
==> Game Programming
        – Playing
with GAPI
        ==>
Messaging
        – Java/C++ PC Standby
Detect and Prevent
        ==>
Sockets
        – [Updated] Receiving
& Converting Numeric and String Data via
Sockets
        ==> Splitter
Control
        –
BiSplitter
        ==> System
Tray 
        – Placing Your C#
Application in the System Tray
       
==> Threads
        – Dynamic Creation
of Thread-Separated Dialogs Having Only Its Class
Name
        ==> Visual Basic
.NET 
        – Creating an NUnit
Project Template for .NET, Part 1
       
==> Windows Forms
        – C# Winforms
Wizard

–> Discussion Groups

–>
Highlighted new articles on Developer.com


       1. Overcoming “Not Invented Here”
Syndrome
       2. A Look at the CTT+
Exam
       3. Oracle and Java Stored
Procedures
       4. Beta Released for Java
Studio Creator    


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


 


… CodeGuru Badges


There have been a number of requests made for changes and enhancements to
CodeGuru. We’ve made many of these and continue to forge ahead with more. One of
the most recent items that we’ve done in response to a request is to create
CodeGuru badges. These badges are graphics that you can use on your site to link
to your profile on CodeGuru or to the site in general. There are three different
types of badges each in two different sizes.


You can get to the graphic badges in the site FAQs at:


http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,c00c,ps1,jorm,i5r0

If
you use these on your site, let me know. This isn’t mandatory, I’m just
interested in seeing how you use them!

… Quiz Question!


Last week’s question was relatively easy. Even as an easy question, it was
interesting to see how many people asked if the problem was the use of single
quotes instead of double quotes. Let me say that a character pointer can point
at a single character! That was not an issue.


To refresh your memory, last week’s question was:


     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?


The answer is yes! they are all three valid and correct. The difference was
in the constant declarations of each of these. A couple of people were able to
point out the differences.


The first one (const char * myPtr) declares a pointer to a constant
character. You cannot use this pointer to change the value being pointed to:


char myCh1 = ‘A’;
const char * myPtr = &myCh1;
*myPtr = ‘J’; //
error – can’t change value of *myPtr


The second one (char * const myPtr) declares a constant pointer to a
character. The location stored in the pointer cannot change. You cannot change
where this pointer points:


char myCh1 = ‘A’;
char myCh2 = ‘B’;
char * const myPtr =
&myCh1;
myPtr = &myCh2; // error – can’t change address of myPtr


The third declares a pointer to a character where both the pointer value and
the value being pointed at will not change.


Next week I’ll ask an even easier question than this one. If you have a
question you’d like to see posted, then send the question and the answer to me
at webmaster@codeguru.com. Indicate
in the message it is for consideration for the newsletter!


… Releases and News


In keeping up with some of the betas –


The impact of reallocating some resources from Longhorn to Service Pack
2 means that the first beta for Longhorn is now expected in early 2005 instead
of late 2004,


This is a quote from, “Longhorn’s Delay Expectations” posted to
InternetNews.com. This news release also mentions the possibility of cuts to
WinFS in Longhorn. For more, check out the full news article at:


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


Part of the delays to Longhorn are a result of the SP 2 Release of Windows
2003. InternetNews interviewed Tony Goodhew at Microsoft about this release.
Tony’s interview can be found at:


http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,84xn,hyh,jorm,i5r0


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 http://www.codeguru.com/review-guidelines.php for
submission guidelines.


–> Network Security Assessment


By Chris McNab for O’Reilly
508 pages for $39.95
http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,l197,cv8q,jorm,i5r0
The
book description states, “An increasingly popular approach to network security
is to think like the bad guys”



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


This week’s posted CodeGuru articles:


==> Beginning C#


– C# FAQ 2.4 – How do I build a C# application using Visual C# .NET
2003?
By Anand Narayanaswamy


Examines how to develop a simple C# application using Visual C# .NET
2003.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,jib5,3vza,jorm,i5r0


– C# FAQ 2.3 – How do I build a C# application using Command Line
Compilers?
By Anand Narayanaswamy


Learn how to write a C# program using command line compilers.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,iqkp,a36u,jorm,i5r0


==> Databases


– A Practical Guide to a Post-Relational Database for .NET: Matisse
By
johnssk


This is a step-by-step guide for a post-relational database for .NET that
provides you with better productivity and extensibility for data management. The
article aims to help developers quickly evaluate this alternative solution for a
.NET database.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,jib5,3vza,jorm,i5r0


==> Edit Control


– Implement a Console Window Using an Edit Control
By Shallyee Shang


If you are writing a telnet-like application that needs a console window, try
this simple solution.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,7afj,ee5w,jorm,i5r0


==> Forums


– Hottest Forum Q&A on CodeGuru for the week of April 4th, 2004
By
Sonu Kapoor


This week’s topics include finding whether or not a process is running,
converting binary numbers to decimal or to char, reading a window’s text from an
another window without using the mouse, and why lower_bound() does not work.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,ex5r,d4wq,jorm,i5r0


– Hottest Forum Q&A on CodeGuru for the week of March 29th, 2004
By
Sonu Kapoor


Topics this week include why the CFtpConnection::Command function does not
work, how to change the title of CMDIFrameWnd when the child is maximized, how
to make sure whether a pointer is still good, and how to recognize a STOP in
Windows Services.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,gn1d,jhsw,jorm,i5r0


==> Game Programming


– Playing with GAPI
By Alex Gusev


If you need to develop high-performance applications proceeding massive
graphical operations (e.g. games), GAPI may be quite suitable.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,l454,38yd,jorm,i5r0


==> Messaging


– Java/C++ PC Standby Detect and Prevent
By Tomer Petel


Shows how to detect whether the computer is going to go into sleep (standby)
mode and allow/disallow it.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,ac5w,grti,jorm,i5r0


==> Sockets


– [Updated] Receiving & Converting Numeric and String Data via
Sockets
By Tom Archer –


Many times a remote system will send a numeric value indicating the length of
the data to be received in subsequent receive commands. However, when you start
sending and receiving numeric data via sockets, you have to be aware of
conversion issues in terms of what type of machine is on the other end of the
connection.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,9l8e,k99r,jorm,i5r0


==> Splitter Control


– BiSplitter
By Serg


BiSplitter is MFC-compatible class for creating a splitter window that looks
like a Microsoft Outlook window.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,ekwl,i7sh,jorm,i5r0


==> System Tray


– Placing Your C# Application in the System Tray
By Tom Archer


Learn the steps involved in specifying that an application is to be minimized
to the Tray, how to allow the user to restore the application by double-clicking
the icon, and  how to create and respond to a System Tray icon’s context
menu.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,mbk9,82uq,jorm,i5r0



==> Threads


– Dynamic Creation of Thread-Separated Dialogs Having Only Its Class
Name
By Dmitri Chorine


The article describes a way of creating class objects by naming its classes.
This way permits you to create a new class object by calling a function or class
method that receives as input parameters pointer to CRuntimeClass object. In
general, it shows you how to design a mechanism that creates a user-selected
dialog window in its own child thread.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,ifuh,9mo4,jorm,i5r0


==> Visual Basic .NET


– Creating an NUnit Project Template for .NET, Part 1
By Paul Kimmel


Combine NUnit and TraceListeners to create great test libraries.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,kguz,jimx,jorm,i5r0


==> Windows Forms


– C# Winforms Wizard
By Barretto VN


A lot of time is spent in developing the simple but time-consuming user
interface in Visual Studio .NET in the C# environment in the initial stages.
This article will help you create a form wizard.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,9vpa,a5mu,jorm,i5r0


/——————————————————————-
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.-/


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



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


1. Overcoming “Not Invented Here”
Syndrome
     By Michael Nash –
  
Have you noticed the tendency of developers to reject suitable external
solutions to software development problems in favor of internally-developed
solutions?



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,3yf8,5jod,jorm,i5r0


2. A Look at the CTT+ Exam
     By
Steve Rowe –
    Do you enjoy sharing your knowledge and
experience with others? Have you considered training or mentoring new
programmers? Take a look at the CTT+ Exam.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,c8w9,53xw,jorm,i5r0


3. Oracle and Java Stored
Procedures
     By Michael Klaene
– 
    An introduction to Oracle Java stored
procedures, including an overview of the technology, its benefits, and a step by
step guide on how to write them.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,mfwz,ewch,jorm,i5r0


4. Beta Released for Java Studio
Creator
     By Rosemarie Graham –

    Developers can now download the next generation tool for
Java application development.



http://nl.internet.com/ct.html?rtr=on&s=1,u1i,1,drv9,jbr7,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