Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Visual C++ 2005
This is the forum to discuss the Wrox book Ivor Horton's Beginning Visual C++ 2005 by Ivor Horton; ISBN: 9780764571978
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Visual C++ 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 21st, 2007, 06:02 PM
Authorized User
 
Join Date: Dec 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 11 WINAPI or CALLBACK in WindowProc

I was a little confused in the WindowProc() header.

Should it be,
LRESULT CALLBACK WindowProc(.....
as on page 633 at top of page

or,
LRESULT WINAPI WindowProc(.....
as on pages 636, 637

Thanks,
Brian


Sincerely,
Brian
__________________
Sincerely,
Brian
 
Old May 27th, 2007, 03:56 PM
Registered User
 
Join Date: May 2007
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't fully understand everything I am reading in this book. Maybe this is an error that has not been added to the Errata sheet. You can submit an error via an errata form ( https://hub.wiley.com/community/support/wrox )and the author or his people will attempt to verify the error and add it to the errata sheet.

hope this helps

Last edited by jminatel; May 18th, 2016 at 03:37 PM.. Reason: new Wrox support URL https://hub.wiley.com/community/support/wrox
 
Old July 18th, 2007, 02:44 PM
Authorized User
 
Join Date: Feb 2007
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Brian,

If you've had a go at Ex11_01 you'll probably have the code available inside Visual Studio. If you right-click on WINAPI and select 'Go to definition' it will bring up 'windef.h'.

In here you can see that if you are compiling on a Windows system, as opposed to a Mac or something else, WINAPI is defined as '__stdcall'. Directly above it you can see that CALLBACK is defined as exactly the same thing.

So it shouldn't make any difference to the compilation process. If you're supposed to use one or the other for code readability purposes I couldn't tell you.

Hope this is helpful.

Dan






Similar Threads
Thread Thread Starter Forum Replies Last Post
chapter 11 figure 11-7 relative positioning pelopito BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 November 29th, 2007 06:11 AM
Chapter 11: kiley-s BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 10 March 8th, 2007 08:19 PM
Chapter 11 zaidqais Visual Basic 2005 Basics 0 June 2nd, 2006 04:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.