Win32 Api Programming Books : Dan Appleman Visual Basic Programmer s Guide to the Win32 API (Book with CD-Rom)

Dan Appleman Visual Basic Programmer s Guide to the Win32 API (Book with CD-Rom)

£73.98


The definitive article - I have been programming in Visual Basic for the last 8 years and the Dan Appleman books have always been the most used and useful on my desk. This latest incarnation covers the huge advances that have occured in Visual basic 5 and 6 to allow developers to exploit the API to it s fullest extent...a powerful counter to the you can t do real stuff in VB myth...

Simply Put: The Best - I really just have to echo the words made by the other reviewers. The content of this book is superb and there is so much information - you get lost with it all. I started programming with VB after learning C and C++. In C++ much more things are possible than with VB and I was quite bemused when I started VB and found this. I wanted to learn VB for fun but now this is my favorite language and most productive one. This book references everything to do with the Win32 API (NT and Win2k - a bit missing) and guides you through using it. The lack of programming language in VB needs the API and this book makes a good job of explaining and demonstrating most of it.A superb book!

From a Corporate Developer - Those of you in an office with more than a couple of VB developers will already have access to a copy of this book. As a contractor I find that the permies borrow this book more than any other. As mentioned by others though it is not encyclopedic on the API. It is however, an excellelent starting point and a great reference for all of the more commonly used API functions.A fine book. (Especially for you permies - you know who you are!)

Excellent but overly complicated and nerdy in parts - Visual Basic Programmer s Guide to the Windows API by Dan ApplemanWhat is the API exactly? The API is nothing more than a set of libraries. Each library contains a vast number of functions. The beauty of the API, if it has one, is that these functions are added at runtime (dynamic linking) on an as needed basis. Your program doesn t have to store vast amounts of data - the user who buys your program also has these libraries on their own computer. Each dynamically linked library (.dll) can be used by any program on the computer providing that program has been designed to access it. This is where you come in. There are three, no four, steps to becoming an API programmer. Step One: get a good working knowledge of VB, write many programs, discover its limitations (that won t take long), enjoy some late night sessions trying to figure out the Help files, grit your teeth when you find you can t justify text to both edges, when the multimedia control won t function properly, when it takes half an hour to work out the conversion between twips and pixels, etc. etc. You will have some fun, though, and it s surprising what you ll learn. Use the Internet as much as possible, because you can be sure that someone out there has had the same problem as you (these problems themselves are, fortunately, a finite set, just like VB). A little tip: if you do search for something on the Internet be prepared to spend several hours doing so. Be patient, there are thousands of links out there, and one of them has the answer to your problem. Step Two: gradually introduce a few API calls into your programs, start with items such as using the system BEEP, calling a .WAV file, etc. Using the API in this way will get you used to the idea of adding .BAS modules to your program, how to use the Declare statement and how to marry your program s call to the inherent .dll function. Step Three: get Dan Appleman s book and read the first five or six chapters. Understand not only what the API is, what VB really is, what Windows is: all of this and more you will need to know. Understand what a .dll is and what the different system .dll s do. Understand the types of data: on Windows, on VB, in each .dll. Finally, understand how to convert between one data type and another - for example C++ will not recognise VB string types, VB will not deal with unsigned integers, Windows does not understand what a variant (that cornerstone of good but sloppy BASIC programming) is, etc. Step Four: this bit is really important. You won t understand what the API is all at once. So, just read a little every day, try one or two routines here and there, use the Web s vast VB resources for example - C:WINNTPROFILESAdministratorDesktopTUTORIALSAPI TutorialsWindows API Guide Articles.htm - is a very well written API facility. Don t neglect the theory behind the API, either which, again, is another benefit to be had from using this book. Hold on to the core idea: VB is a puny subset of the API and needs to talk a special, quite complex, and not altogether logical language to get the API to listen. When dealing with Windows bear in mind its more than passing resemblance to a patient forced to take pill No. B to counteract the side-effects of pill No. A. However, pill No. B produces more problems and so pill No. C is needed. By this time the physician realises that pill No. A is no good, and so it s replaced by pill No. D... there s a strong element of this kind of thing in Windows. And just like real doctors, the makers of the Windows family will assure you with a completely straight face that this latest pill No. (read Version No./book/program/operating system) is exactly what you want. Once you ve got the basic theory - expounded in the first six chapters of the book you then need to start specialising, and the book has everything for the reader who wants to do this. However, there s one caveat: Appleman is clearly a master programmer - vast understatement of the year, and - like many professionals who have to justify their huge fees and probably like showing off into the bargain - often uses the API when there is no need to do so. A striking example of this is a little app. called TEXTMSGS.VBP in the Chapter 18 folder of the Samples directory that comes with the book. This little app. has approximately 40 Declare statements, countless constants, two .bas modules and a menu thrown in for good measure. Grief, I think I hear you say: what does it do? Fly a man to the moon? No, actually, all it does is tell you the number of lines in a text, the character numbers of the characters selected, the first visible line of the page, etc. In fact next to nothing. The program as written uses vast Windows resources, must have taken ages to write and gives the learner a totally false impression of the difficulties of learning to use the API, and what it s for. In fact I wrote a program that does exactly the same thing, takes 50 lines of code (10 of which are probably not necessary), and does not use the API at all. There isn t a single Declare statement in sight. Dan, you re great, but let s keep our feet on the ground, ok? I m olsson3@nascr.net. If you want a copy of my 50 line program, e-mail me.

The title promised much but unfortunately... - When this eagerly awaited weighty tome arrived on my doorstep, I tore open the packaging with great enthusiasm. This was the book that was going to teach me all I ever wanted to know about Windows NT API calls to remotely manage shared resources, user and group accounts, NTFS file permissions etc.Unfortunately, I was greatly disappointed. None of the API calls that I was interested in feature at all in this book.If it is the API guts of Windows NT you are interested in, this book is not for you!




Dan Appleman Visual Basic Programmer s Guide to the Win32 API (Book with CD-Rom)