Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer 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
  #1 (permalink)  
Old April 16th, 2014, 08:47 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default Difficulty opening the book's files

I have visual basic 2008 express and I can do all the exercises but I cannot open any of the book's downloaded files. It gives me the error message that:
The selected file is a solution file, but was created by a newer version of this application and cannot be opened!

Appreciate your help!
  #2 (permalink)  
Old April 16th, 2014, 10:42 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Unfortunately that's the way Visual Studio behaves. It's backward compatible (so you can open old files with newer versions), but it's not forward compatible (so you can't open newer files with older versions).

One trick that often works is to create a new VB 2008 project and remove Form1 from it. Then use the Project menu's Add Existing Item command to select the VB 2012 program's forms and modules and add them to the VB 2008 project.

You can also open the VB 2012 source files in a text editor and copy and paste into a new project.

Of course you can also install a newer version of Visual Basic:

That would make using the examples easier.

I hope that helps.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #3 (permalink)  
Old April 17th, 2014, 12:31 AM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Thanks for your reply. The text editor option worked for example 1.
  #4 (permalink)  
Old June 8th, 2014, 11:36 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default "Missing Files" in download projects

I downloaded Visual Studio 2010 and Visual Basic as described in the book (p. xxxviii). I downloaded the book examples. When I open a project (double clicking on the project file to launch VS), I get several errors that files cannot be found (Form1.Designer.vb, Application.Designer.vb, and others). They are clearly in the folders. What am I doing wrong? Thanks in advance for any help.
  #5 (permalink)  
Old June 9th, 2014, 10:14 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Usually this means you didn't unzip the files. If you just download the zip files, Windows Explorer can open them and navigate as if they were unzipped and part of the normal file system. Visual Studio, however, cannot understand how to use the zipped files so it gives all sorts of unhelpful error messages similar to these.

Right-click on the zip files and select Extract All to extract the files and put them in the normal directory structure. Then you should be able to double-click on the .sln files to open the projects.

Let me know if that works.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
  #6 (permalink)  
Old June 10th, 2014, 01:46 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2014
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks much! Silly me. All works fine now. BYW-great book. Easy to follow and learn from.
  #7 (permalink)  
Old June 11th, 2014, 09:43 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

This is probably the mist common problem people have. The only silly thing is that Visual Studio gives such unhelpful error messages.

Quote:
BYW-great book. Easy to follow and learn from.
Thanks! post a review when you have a chance!

And post again if you have other questions.
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help files from book's web site do not work lcaretto BOOK: Excel 2007 VBA Programmer's Reference ISBN: 978-0-470-04643-2 0 July 14th, 2010 02:55 PM
Opening Excel Files Kipster1203 Access 2 May 14th, 2010 10:48 AM
Opening PDF files comicghozt ASP.NET 1.0 and 1.1 Professional 11 October 23rd, 2006 04:06 AM
Please Help! Opening Multiple files jezywrap Excel VBA 3 December 19th, 2005 12:34 PM
opening files wilbur C# 1 April 20th, 2005 05:54 AM





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