Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2010 > BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
Password Reminder
Register
Register | FAQ | Members List | Calendar | 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 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
Reply
 
Thread Tools Display Modes
  #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!
Reply With Quote
  #2 (permalink)  
Old April 16th, 2014, 10:42 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
  #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.
Reply With Quote
  #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.
Reply With Quote
  #5 (permalink)  
Old June 9th, 2014, 10:14 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
  #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.
Reply With Quote
  #7 (permalink)  
Old June 11th, 2014, 09:43 AM
Rod Stephens's Avatar
Wrox Author
Points: 3,145, Level: 23
Points: 3,145, Level: 23 Points: 3,145, Level: 23 Points: 3,145, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 641
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!)
Reply With Quote
Reply


Thread Tools
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
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 11:34 AM
opening files wilbur C# 1 April 20th, 2005 05:54 AM



All times are GMT -4. The time now is 05:01 AM.


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