Wrox Programmer Forums
|
BOOK: Beginning Microsoft Visual Basic 2010
This is the forum to discuss the Wrox book Beginning Visual Basic 2010 by Thearon Willis, Bryan Newsome; ISBN: 9780470502228
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Microsoft Visual Basic 2010 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 July 15th, 2010, 11:43 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default mickywind

Can anyone help with a real novice question? (although familiar with VB6 I am just starting with Visual Studio).
Having downloaded code samples relevant to the book, I am at a loss as to how to run these. After unzipping and picking a project, I end up with a number of files per project and cannot find which I should load up to start.
In VB6 there was a project file that took care of loading the others but here this doesn't seem to work. Any help would be appreciated.
I am at the elementary stage whereby I'm confused at the moment between Visual Basic, Visual Studio, .Net and Windows files! so treat me gently please.
Thanks
 
Old July 17th, 2010, 07:45 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Wink hope this helps

Not sure which examples you are refering to for sure, but I had a lot of of trouble with the switch from vb6 to VS2010 Also. Any of the latter chapters, refering to data access will run ok, but you will not have access to any data unless you get the connection string PERFECT. Which example are you trying to run.?


Good luck
 
Old July 17th, 2010, 08:00 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default egg on my face.

Sorry after reading your post again I noticed that your trouble is in getting started... To run a Chapter 1 Example, open the CH01 Folder, Open The the "Hello User" Folder, Open the other "Hello User" Folder. To open the solution you will click teh "Hello User.sln" IF Known file type extensions ;dindows default; are turned off you will locate the Icon with the Number 10 in the upper right corner, and the infinity symbol in the lower right corner. after loading the solution into the solution manager, you can start debugging much like vb6. use the green "play" button in the middle of the toolbar, or Press F5 , or Select debug from the file menu, then click "Start Debugging". Hope this helps. if not feel free to post more specific problems.
Good luck
 
Old July 20th, 2010, 11:19 AM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code in wrong path.

Hi GeneBuchite

Many thanks for your interest and help, I was certainly able to move forward a step with your help. Unfortunately I'm not quite there yet. I have now uncovered that no matter where I unzip the downloaded code to the IDE always goes looking for files down the path shown below, then because they are not there returns an error as shown.
I've found that if I copy all the files unzipped to that path then hey presto it works!
Thus my problem is what is governing this path, is it the IDE or perhaps Windows (Windows7 Ultimate). I understand there is a 'Project Directory' and thought this could be relevant, although have been unable to discover how to get access to this.
If you have any knowledge in this area I would be grateful for guidance. Please forgive my naivity, I am very new to this.
Regards



Error 2 Unable to open module file 'C:\Users\Mike\AppData\Local\Temp\Temp1_Hello User.zip\Hello User\HelloUser.vb': The system cannot find the file specified. C:\Users\Mike\AppData\Local\Temp\Temp1_Hello User.zip\Hello User\HelloUser.vb 1 1 Hello User
 
Old July 20th, 2010, 04:32 PM
Registered User
 
Join Date: Jul 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Solution found for code on wrong place.

Further to previous post, in fact a couple of hours after submitting this, I have found the solution. In the 'Start' page under 'Recent Projects' of the IDE I deleted all previous references to my several efforts at unzipping and running these examples, such that I started with a virginal Visual Studio 2010.

I then downloaded the examples to a new folder created for this purpose and from there unzipped in the usual way. Suddenly all was running with no problems. I could either double click on the appropriate .vbproj file or open Visual Studio 2010 then open project and browse to my folder. So problem solved.
Many thanks to GeneBuchite for the help in solving my initial stumbling block which enabled me to move forward. Whilst this must seem a trivial problem to you experienced guys it has caused me many hours of time which a little more guidance in the readme file could perhaps have prevented.
Regards mickywind

Last edited by mickywind; July 20th, 2010 at 04:35 PM..
 
Old July 21st, 2010, 06:03 AM
Authorized User
 
Join Date: May 2010
Posts: 70
Thanks: 4
Thanked 6 Times in 6 Posts
Send a message via Yahoo to GeneBuchite
Default Glad to help

Hey, think nothing about asking for help. that is what this forum is for. After exhausting the knowledge from this book, I picked up another. from a different Publisher. Wish I would have found another wrox Book, because the other book does not have P2P Fourms. I thought life was great. programming w/ vb6 On a Windows Xp PLatform. Had my business running on it for the last 6-8 years. I was getting comfortable with it. Then I need a new computer to run my newer G5 FlightSimulator. I waited through Vista, never did get along with it. Windows 7 seemed a little more user friendly untill I tried to boot VB6. Wow what a shock to me... Back to the books. And MAN is that ever hard at 40. I've got an idea we are on about the same level, I just got a little earlier start.


Good Luck 2u

P.S. just wait till you get into SQL. Hard to get started.... Worth all the effort...for me anyway.









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