Can't install electronic version of book after installing IE 5 | |
Q. | I want to install the electronic version of Programming Windows, but it wants to replace my version of Internet Explorer 5 with Internet Explore 4. What do I do? |
A. | The Microsoft Press Technical Support group acknowledges this as a known problem.
They say: "The setup for the electronic book doesn't recognize IE 5 as being a
version of Internet Explorer and will attempt to install IE 4 over top of the existing installation.
This won't harm the customer's system but will cause a number of error messages to appear.
Here's the workaround: 1. Insert the book's CD-ROM in the CD-ROM drive. 2. Open Windows Explorer. 3. Browse to the \Ebook directory on the CD-ROM. 4. Highlight the .CHM file and select Copy from the Edit menu. 5. Close or minimize all windows so that your desktop is viewable. 6. Right-click an empty spot on your desktop and select Paste from the context menu. In order to view the electronic book, simply double-click the .CHM file on your desktop." In other words, you don't need to install anything. Just run the .CHM ("compiled HTML help") file. |
EXEs in DEBUG directories don't run under Win95 or Win98 | |
Q. | On the CD-ROM, most of the .EXE files in the DEBUG directories don't run under Win95 or Win98. Why not? |
A. | As discussed in the README.TXT file on the CD-ROM and in the book in the section
"Internationalization and This Book" (pages 38-39), the sample programs on the CD-ROM use mostly default project settings.
However, there's one major exception: For the DEBUG configuration the UNICODE identifier is defined.
This causes the program to be linked with the wide-character versions of all the function calls.
In general, Windows 95 and Windows 98 do not support Unicode and the wide-character function calls.
Thus, these .EXE files will only run under Windows NT. If you run the .EXE files under Windows 95 or
Windows 98 you'll get an error message that the program requires Windows NT.
If you want to compile a DEBUG version of a sample program to run under Windows 95 or Windows 98,
in the Project Settings dialog box, C/C++ tab, remove the UNICODE identifer from the
Preprocessor Definitions edit field.
|
Read-Only Attribute on Copied Files | |
Q. | When I copy the CD-ROM to my hard drive, all the files have the read-only attribute set. What's a good way to remove that attribute from all the files in one shot? |
A. | In the MS-DOS Command Prompt window, from the PROGWIN directory, execute the command:
|
MSDN Web Sites | |
Q. | I can't find the Microsoft Developer Network (MSDN) Web sites you mention on page 12. Where are they? |
A. | The Platform SDK can be downloaded at
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/.
The Platform SDK API documentation is located at http://msdn.microsoft.com/library.
|
LINK Error: "unresolved external symbol _main" | |
Q. | When I try and compile the sample programs on the CD-ROM, I get an error message "unresolved external symbol _main." What am I doing wrong? |
A. |
When you get this message it means that the program is being compiled and linked as a
character-mode "console" application -- not as a Windows application. The
linker can't find a function called main() because the program doesn't have one. The linker
should be looking for WinMain(), which the program does have.
If you're creating a new project for the program within VC++, you need to specify "Win32 Application" rather than "Win32 Console Application." See the instructions on page 14 of "Programming Windows," Fifth Edition.
If you're loading the programs from the CD-ROM, use the File | Open
Workspace command to load in the appropriate .DSW file on the CD-ROM. Don't
use the File | Open command to load in the .C file.
|
Bug List | |
Q. | Are there any bugs in the sample programs in the book? |
A. | Yes, and here's a list:
|
© Charles Petzold, 2003, pw5@charlespetzold.com
This page last updated July, 2003.