Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 11th, 2007, 03:55 PM
Registered User
 
Join Date: Dec 2007
Location: Winnetka, CA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ex11_01, Project Template

I am familiar with C++ and have studied the beginning chapter of Ivor Horton's book Beginning Visual C++ 2005, the sections that deal with source code and windows development. In studying Chapter 11, I have encountered a problem with Ex11_01 on page 637.

The instructions say to choose “the Win32 Project template” instead of “choosing Win32 Console Application”. When I do the File-New-Project or Ctrl Shift – N, the start page does not have the “Win32 Project” option, as is shown on page 14. I tried the “Search Online Templates” option but could find no information.

I also downloaded the code from online at wrox.com. I click on the source code for Ex11_01, but it does not incorporate in the project in any way.

Any information or help on this would be greatly appreciated.
  #2 (permalink)  
Old December 12th, 2007, 05:59 AM
Authorized User
 
Join Date: Oct 2005
Location: Gateshead, Tyne and Wear, United Kingdom.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try creating an empty project and add the .cpp file to it under "source files". Then build it and run it.

Dan Crossley
  #3 (permalink)  
Old December 13th, 2007, 12:13 AM
Registered User
 
Join Date: Dec 2007
Location: Winnetka, CA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the input.

When I do Ctrl Shift – N to get the New Project Window I get:

      Visual C++ Visual Studio Installed Templates
         CLR Win32 Console Application
         Win32
         General

                               My Templates
                                  Search Online Templates


On page 14 of Beginning Visual C++ the window has an extra option, “Win32 Project”, right to the side of Win32 Console Application. Does anyone know how to bring up that template?

I tried selecting “General”, and then selecting “Empty Project” and then adding the .cpp file. But when I compile it doesn't have the windows.h file, and I am unable to find that. That might be the problem. Maybe it will work if I can get the windows.h file.

If anyone has an idea what I am doing wrong or what I need, that would be great.



  #4 (permalink)  
Old December 13th, 2007, 05:54 AM
Authorized User
 
Join Date: Oct 2005
Location: Gateshead, Tyne and Wear, United Kingdom.
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't know why you can't get the win32 option. Are you using the full version of Visual Studio 2005?

As for the windows.h file, in my system it's in the C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\Include directory.

Visual Studio has been configured to look for it in tools->options->Projects and Solutions->VC++ Directories. It's a sub-directory of the directory where Visual Studio was installed ($VCInstallDir).

Try configuring it to look for that directory, or use the absolute path to windows.h in an empty project.

Dan Crossley
  #5 (permalink)  
Old December 14th, 2007, 03:20 PM
Registered User
 
Join Date: Dec 2007
Location: Winnetka, CA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm not sure what you mean by the “full version”. I downloaded Microsoft Visual C++ 2005 Express Edition. It was free. Is there another more extensive version to be purchased? I don't recall. I looked again at Microsoft.com and couldn't find anything.

I did find the .h files at: C:\Program Files\Microsoft Visual Studio 8\VC\Include. Windows.h was not among them.

Thanks for the help.

  #6 (permalink)  
Old December 15th, 2007, 07:44 AM
Registered User
 
Join Date: Dec 2007
Location: , , .
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oak,
You can download a 90 day trial of the full version of visual studio 2005 professional here:
http://www.microsoft.com/downloads/d...displaylang=en

When that runs out, you can download the full 2008 version trial.

When that runs out, you'll have to buy it!

Tony

  #7 (permalink)  
Old December 16th, 2007, 02:09 PM
Registered User
 
Join Date: Dec 2007
Location: Winnetka, CA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Tony. I'm checking that out.

Oak

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Website project vs Web Application Project... thenoseknows ASP.NET 2.0 Professional 0 January 14th, 2007 09:47 PM
How do i Call one project to another project kau_shuk VS.NET 2002/2003 8 December 5th, 2006 10:02 AM
Project template choices for Chapter 3 example neal.howland BOOK: Beginning Mac OS X Programming 2 September 30th, 2005 01:54 PM
calling one template in other template VijayKumar XSLT 3 September 15th, 2005 11:12 AM
Add report of one project into another project tejaswibv Crystal Reports 0 July 13th, 2005 04:40 AM



All times are GMT -4. The time now is 10:00 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.