[comp.windows.ms.programmer] Borland C++ and the Petzold book

wallis@sieras.enet.dec.com (Barry L. Wallis) (03/01/91)

In article <1772@pdxgate.UUCP>, dmatlock@eecs.cs.pdx.edu (Delbert Matlock) writes...
>Ok, I'm sure a few other people have got there BC++ in the mail.
>At least a couple of those must have gone out and bought the
>Petzold book (Programming Windows).  So tell me, has anyone
>had any luck getting the examples in the book to compile under
>BC++?  I was able to get the first two to compile, but they
>generated "Unrecoverable Applications Error" when I tried to
>run them from the File Manager.  To add insult to injury, the
>example programs included with BC++ run just fine.  (Even the
>one in fragments in the DOC subdirectory)
> 
>Somebody please tell me what I'm doing wrong here:
>	1)  Enter in all of the source files.
>	2)  Create a make file with the 'C' and 'DEF' files.
>	3)  Click on [O]ptions, [A]pplications, [W]indows
>	    Executable.
>	4)  Start the 'Make' process.
> 
Well, I did something similar. However, have only a limited cranial capacity I
decided not to try and figure out what BCC and TLINK switches to use (are MSC
and BCC switches compatible?). I used the IDE and managed to push the right
buttons (taking defaults and not worrying about efficiency yet). Doing this I
was able to get the first example, HELLOWIN, working in record time. So yes, it
does work. 

The next thing I will attempt is playing with some of the options in the IDE
and seeing if I can understand them. After that I will use the PRJ2MAK utility
(or whatever it is called) to translate the .PRJ file to a MAKE file and
associated BCC and TLINK response files and I will study that.

Finally, I plan to make it object-oriented. Probably with WindowManager class
which will include WndProc() and have the case statement call virtual functions
which by default will call the WndDefaultWhateverItIsCalled() and can be
overridden via inheritance. Any suggestions would be appreciated.

>On a positive note, I would like to commend Borland on the
>prompt shipment of the package.  It took it less than a week
>to arrive in Portland, OR.
> 
Yes, I too am happy with Borland's service. Now if they would send me the 1/3
off coupon and Egghead would allow me to return the book and repurchase it with
the coupon I would be set.

---
Barry L. Wallis			USENET: wallis@labc.dec.com
Database Consultant		Prodigy (don't laugh): DNMX41A
U.S. DECtp Resource Center	DECUServe: EISNER::WALLIS (not on the net yet)
Los Angeles, CA			"No one voted for me, I represent myself"
---