See buying choices for this item to see if it's one of the millions that are eligible for Amazon Prime.

7 used & new from £4.99

Have one to sell? Sell yours here
 
   
Visual Basic Shell Programming
 
See larger image
 

Visual Basic Shell Programming [Illustrated] (Paperback)

by J.P. Hamilton (Author)
5.0 out of 5 stars See all reviews (1 customer review)

Available from these sellers.


2 new from £24.55 5 used from £4.99

Customers Viewing This Page May Be Interested in These Sponsored Links

  (What is this?)
Learn Visual Basic
   www.LearnDevNow.com    Become an expert, master Visual Basic for less than $1 per day. 
C++Builder | Visual IDE
   www.Embarcadero.com    RAD Visual IDE for rapid C and C++ Development. More info. Free trial 
Visual Basic Code
   microsoft.com/VisualStudio    Defy All Challenges with Visual Studio 2008. Free 90-Day Trial. 
  
 

Product details

  • Paperback: 388 pages
  • Publisher: O'Reilly Media, Inc, USA; illustrated edition edition (10 Aug 2000)
  • Language English
  • ISBN-10: 1565926706
  • ISBN-13: 978-1565926707
  • Product Dimensions: 23.1 x 17.8 x 2.3 cm
  • Average Customer Review: 5.0 out of 5 stars See all reviews (1 customer review)
  • Amazon.co.uk Sales Rank: 1,003,999 in Books (See Bestsellers in Books)
  • See Complete Table of Contents

Product Description

Amazon.co.uk Review
The author sets out to demonstrate the feasability of writing shell level programs in Visual Basic. Microsoft recommends C++ for shell programming--basically, adding or altering the features of the Windows GUI.

Changing shell behaviours is accomplished using the COM (Component Object Model), for example, extending the Windows namespace so you can browse the Registry with Explorer. This is one of the seven example shell programming projects in the book. Other projects include a new icon handler, new Property pages, new drop handlers, new Clipboard formats and other goodies. Each or any of these can be used to integrate your program's behaviours more tightly into the Windows shell.

It has to be said, Microsoft never intended you to do these things with VB. As a consequence the author is forced to put VB though some unusual hoops, such as changing the way it derives classes. While there's nothing intrinsically wrong with pushing the VB envelope, changing Windows' default behaviours should be done with care. For example, each file type can have only one drop handler. If you change the handler to suit a program of your own it can have knock-on effects on existing programs which assume the default behaviour. This is why the author uses a made up .rad filetype in the projects.

This book is well and enthusiastically written with working examples that are nevertheless simple enough to showcase the essentials. If you're a VB programmer, Visual Basic Shell Programming, read this book and you may never have sand kicked in your face by the C++ folk again. --Steve Patient

Product Description
While Visual Basic provides an outstanding set of resources for rapidly developing standalone applications, it lacks the resources that allow you to integrate that application or its data files with the Windows shell by adding such features as customized context menu handlers, per instance icons (such as a data file icon that's based on the contents of the file), or customized property sheets. Typically, these shell extensions that closely integrate an application with the Windows shell are written in C++, and all of the available documentation focuses on using C++ to create shell extensions. Even C++ programmers, however, have difficulty doing so, in view of the woefully inadequate state of the documentation. Very few programmers know that writing shell extensions is not tied to a single language or development environment, and that Visual Basic is an excellent tool for creating shell extensions that more closely tie an application to the Windows shell. That, however, is precisely the focus of Visual Basic Shell Programming: to show you how to take advantage of shell services to develop the shell extensions that allow you to closely integrate your application with the Windows shell, and to provide the basic documentation that you need to accomplish this. Each major type of shell extension is covered, including: Context menu handlers that can add items to the popup menu that appears when the user right clicks a file. Icon handlers for displaying per instance icons that, like the standard Recycle Bin icon, vary depending on some condition Property sheet pages, which appear when the user selects the Properties option from a file's context menu. InfoTip handlers, which display tooltips, or "info" tips for a file object on a per instance basis. In showing how to integrate your applications with the Windows shell by building shell extensions, author J.P. Hamilton also provides a concrete tutorial on COM programming with Visual Basic. While developing your own shell extensions, you'll encounter a number of advanced VB concepts and techniques: Pointers. Since VB tends to hides pointers from the programmer, Hamilton shows how to take advantage of the undocumented VarPtr, StrPtr, and ObjPtr functions, as well as the Win32 RtlMoveMemory function. Using class identifiers (CLSIDs) from Visual Basic. VTable modification, which allows you to override the fact that Visual Basic prevents you from controlling the HRESULT (or status code) returned by a call to a COM method. Visual Basic Shell Programming ventures where none have gone before by showing you how to develop shell extensions while providing an advanced treatment of COM programming with Visual Basic.

See all Product Description


Suggested Tags from Similar Products

 (What's this?)
Be the first one to add a relevant tag (keyword that's strongly related to this product)
Check a corresponding box or enter your own tags in the field below
programming books

Your tags: Add your first tag
 

 

Customer Reviews

1 Review
5 star:
 (1)
4 star:    (0)
3 star:    (0)
2 star:    (0)
1 star:    (0)
 
 
 
 
 
Average Customer Review
5.0 out of 5 stars (1 customer review)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
2 of 2 people found the following review helpful:
5.0 out of 5 stars Windows shell programming is not for C++ guys anymore!, 29 Jun 2001
By Lerxst (Brazil) - See all my reviews
This book is very good.

I was looking for a way to build those fancy IE toolbands and was really disappointed with the Microsoft site, since all the reference about this subject there is on C++. Since those bands are COM objects, I was wondering whether someone had implemented it on VB already. Tried all the search engines and got nothing. Well this book is the only place (by now) where you'll find this information!

Programming the windows shell is a HUGE topic and certainly would require one of those "brick-sized" books to cover it properly. But J.P. Hamilton made a great effort on abridging the most "juicy" stuff, and then it's up to the programmer to develop on top of that information.

Some examples don't work on Windows 2000, but that's something I can understand since I guess most of the techniques shown on this book were developed before the Win2k release. Anyway, as the author states on the preface, this book is not intended for beginners or people who need to be guided on baby steps, but for programmers with some intermediate VB skills at least. This book is all about COM programming, so if you nothing about COM, this book may still be useful (there's a decent COM introduction on chapter 2), but I'd suggest you to play with COM first.

All in all, this is a "cover to cover" interesting book and that kind of book we should keep nearby for reference. Shell programming is a brave new world for VB programmers. I think there are lots of subjects which could be explored on a volume II.

Great job Mr. Hamilton.

Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Only search this product's reviews



Customer Discussions

 Beta (What's this?)
This product's forum (0 discussions)
  Discussion Replies Latest Post
  No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
  [Cancel]

   


Look for similar items by category


Feedback


The Body Shop

The Body Shop - Vitamin C Skin Boost
Protect and boost your glow with The Body Shop Vitamin C Skin Boost.

Shop The Body Shop

 

More From J. P. Hamilton

Object-Oriented Programming with...

Object-Oriented Programming with...

You need the fast-lane toVB.NET objects and you need it now. Hamilton... Read more
£26.99 £18.99

 

A Close Shave

Philips Nivea Coolskin HS8060 Moisturizing Rotary Shaving System
For all types of hair removal, stay smooth with Amazon.co.uk.

Discover Shaving & Hair Removal

 

Treat Someone

Amazon.co.uk Gift Certificates--available in any amount from £5 to £500 With an Amazon.co.uk Gift Certificate, you can get them what they want (even if you don't know what that is).

Learn more about Gift Certificates

 
Ad

Where's My Stuff?

Delivery and Returns

Need Help?

Your Recent History

  (What's this?)
You have no recently viewed items or searches.

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.

Look to the right column to find helpful suggestions for your shopping session.

Continue Shopping: Top Sellers

amazon.co.uk Amazon Home
International Sites:  United States  |  Germany  |  France  |  Japan  |  Canada  |  China
Business Programs: Sell on Amazon  |  Fulfilment by Amazon  |  Join Associates  |  Join Advantage
Customer Service  |  Help  |  View Basket  |  Your Account
About Amazon.co.uk  |  Careers at Amazon
Conditions of Use & Sale |  Privacy Notice  © 1996-2009, Amazon.com, Inc. and its affiliates