|
-
Nov 29th, 2001, 09:12 AM
#1
Thread Starter
Addicted Member
Windows programming with Petzold or Proise? what do you think?
Hi!
Some questions to folks that have read these 2 books:
Charle's Petzolds programming windows (1)
Jeff Proise's programming with mfc (2)
1:
a) Is it possible to read and understand this book without knowing C, but knowing C++?
b) Is this book for newcomers in windows programming?
2.
a) Is it a clear and beginners book for people new to windows programming?
3.
Which one of these books would you suggest if you want to develop nice-looking windows programs?
thanks in advance!
//alex
Last edited by [praetorian]; Nov 30th, 2001 at 09:36 AM.
-
Nov 29th, 2001, 09:31 AM
#2
PowerPoster
I don't know about Jeff and Chales assumes that you already know C\C++ when doing Windows programming. In his examples, he puts some hard code and no comments for it because you should have known that when you did simple C or C++.
Maybe somebody else will be able to tell you about Jeff's book because I have not read that.
-
Nov 29th, 2001, 11:15 AM
#3
Charles Petzold assumes that you know C, not C++ (he programs in C). Jeff Prosise (his book is not available in german, gotta get it in english...) would probably assume that you know C++, since he uses MFC, a C++ class library. You don't need to know the differences between C and C++ to read his book, because he ONLY uses C++. But in any case, I would suggest that you get the Petzold first in any case, because a good knowledge of the API is essential if you have to debug MFC apps. (My personal experience - believe me ), so you should know the most important differences (like that all variables have to be declared at the start of a block). Just so you can read his code. You can still use C++ syntax when you program pure functional API.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 29th, 2001, 04:44 PM
#4
Thread Starter
Addicted Member
Thanks for the replies!
So, first petzolds book and understand the api even if it's c code in that book and then move over to mfc, right?
-
Nov 29th, 2001, 04:56 PM
#5
PowerPoster
It is best and wise thing to learn API first if you have choice of learning either API or MFC. MFC is just an extra evil thing from Microsoft. API is the base of Windows programming, so if you know that, there is nothing else under the API in general.
-
Nov 29th, 2001, 05:09 PM
#6
Thread Starter
Addicted Member
Can you use api in your c++ programs?
-
Nov 29th, 2001, 05:13 PM
#7
Yes, of course. But you need to accept that you'll have a lot of functional programming in your app, not the pure java-like class thing.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 29th, 2001, 05:17 PM
#8
Monday Morning Lunatic
You can hide a lot of the API with your own classes that in most cases are better than MFC's 
Or in our case, just rewrite the API definitions
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 29th, 2001, 05:19 PM
#9
Thread Starter
Addicted Member
you mean that most part of the code will be in functions?
Petzold's book is written with c in mind, but you can if you want to use api in c++ anyway, so I think I'll buy his book, despite this fact. It's only that some things in the book will need be converted to c++........
-
Nov 29th, 2001, 05:20 PM
#10
Your's and kedaman's project is a beautiful thing, parksie.
Z.
-
Nov 29th, 2001, 05:21 PM
#11
Thread Starter
Addicted Member
parksie,
I don't have that knowledge needed to rewrite the definitions yet.......but thanks for the suggestion
-
Nov 29th, 2001, 05:22 PM
#12
PowerPoster
Originally posted by parksie
Or in our case, just rewrite the API definitions
Why do you need to write your own classes if the API definitions are the same...is it a bit faster or what?
-
Nov 29th, 2001, 05:24 PM
#13
parksie, I already wanted to ask that: Why do you use specialized templates instead of overloaded functions?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|