C Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesC Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 12th, 2002, 08:44 PM
Pasiphae1213's Avatar
Pasiphae1213 Pasiphae1213 is offline
Web Developer
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: Pennsylvania
Posts: 171 Pasiphae1213 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to Pasiphae1213 Send a message via Yahoo to Pasiphae1213
Win32 API w/ C++

Does anyone know of any good beginner tutorials on the Win32 API?

I am experienced in writing command line C++ applications, and I am looking to expand to graphical Win apps.

I noticed that Visual C++ has a few help topics regarding the API, but I do not like those ones - I am picky.

I know this doesnt fit in this forum, but I noticed that the Win API is all OOP, and I am not that experienced with OOP, so if you know any good OOP tutorials, post them.

Thanks.

Reply With Quote
  #2  
Old February 12th, 2002, 09:04 PM
jonsagara's Avatar
jonsagara jonsagara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Location: USA
Posts: 286 jonsagara User rank is Private First Class (20 - 50 Reputation Level)jonsagara User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 m 23 sec
Reputation Power: 7
For people getting into Windows programming, I always recommend two books:

Programming Windows by Charles Petzold (Win32 API)

Programming Windows with MFC by Jeff Prosise (MFC)

FYI, the Win32 API uses C, whereas MFC is an OO wrapper of the API written in C++.

Start with the Petzold book to get a firm understanding of the underlying API, then move onto MFC.
__________________
Jon Sagara

"Me fail English? That's unpossible!"

Reply With Quote
  #3  
Old February 13th, 2002, 03:05 PM
majglow majglow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 majglow User rank is Private First Class (20 - 50 Reputation Level)majglow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Heh,

Don't bother with any online tutorials of the WIN 32 API, they aren't any good ones.... Well, maybe a few beginner ones but, you won't find any use out of them....

Just search for "windows API tutorial" with google to find them

-cARL

Reply With Quote
  #4  
Old February 13th, 2002, 03:07 PM
majglow majglow is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 3 majglow User rank is Private First Class (20 - 50 Reputation Level)majglow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Also, that book Programming Windows by Charles Petzold (Win32 API) is pretty good...

After a few minutes, I had my unanswered question answered. What did WINAPI stand for in int WINAPI WinMain([..]) (forgive me if I messed up somewhere with that, I'm still really new to everything windows API)

-cARL

Reply With Quote
  #5  
Old August 4th, 2003, 07:08 AM
anatol anatol is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Bulgaria
Posts: 22 anatol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to anatol
See your header files for WINAPI. It is defined as _stdcall. It is the same as PASCAL, APIENTRY, FAR PASCAL, CDECL. It is just a calling convention in Windows programs. Over the time different are used, and now they are mantained for backward compatibility.

Reply With Quote
  #6  
Old August 4th, 2003, 07:16 AM
anatol anatol is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Bulgaria
Posts: 22 anatol User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to anatol
No, the Windows API is not OOPin terms of C++. It is written entirely in C, but in an object oriented manner. OOP is not C++ or another technology. It is a paradigm. if you learn the API and are accustomed to C++ and objects you should stick with the C thinking of the world, handles, structures, macros, defines, etc. Petzold is excellent, but you should check for Platform SDK in the MSDN.

Reply With Quote
  #7  
Old August 4th, 2003, 10:18 AM
Jason Doucette's Avatar
Jason Doucette Jason Doucette is offline
jasondoucette.com
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Canada
Posts: 378 Jason Doucette User rank is Private First Class (20 - 50 Reputation Level)Jason Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 7 h 23 m 8 sec
Reputation Power: 6
Quote:
Originally posted by jonsagara
Programming Windows by Charles Petzold (Win32 API)
I highly recommend this, as well. I also agree with jonsagara's suggestion to learn the win32 API before moving to MFC.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesC Programming > Win32 API w/ C++


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT