Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 2005 > BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5
This is the forum to discuss the Wrox book Beginning Visual Basic 2005 Databases by Thearon Willis; ISBN: 9780764588945
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 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 Search this Thread Display Modes
  #1 (permalink)  
Old December 28th, 2006, 01:21 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Reference System.Data.dll (ch 2, ex 1)

I've right clicked on my project in Solution Explorer and selected "Add Reference", but in the ".Net" tab there is no entry for "System.Data.dll" for me to select!

My project does not fill the list box, and I've even tried the downloaded example and it doesn't work either.

Any ideas why I don't seem to have System.Data.dll and how I might be able to get it?

Thanks!

Reply With Quote
  #2 (permalink)  
Old December 28th, 2006, 01:26 PM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, duh. Access was still open, and now the project works perfectly!

However, I still don't have an entry for System.Data.dll to add to references. Any ideas?

Reply With Quote
  #3 (permalink)  
Old December 30th, 2006, 06:37 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

In the Add Reference dialog, click on the .NET tab and scroll down until you see System.Data. System.Data.dll is the actual name of the file and I may have confused you on this.

Thearon
Reply With Quote
  #4 (permalink)  
Old December 30th, 2006, 11:57 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks!

Later on in the book it's clearer. What's the difference between referencing System.Data and importing it in the code?


Reply With Quote
  #5 (permalink)  
Old January 8th, 2007, 02:44 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
Location: Fuquay Varina, NC, USA.
Posts: 396
Thanks: 0
Thanked 8 Times in 8 Posts
Default

The book was written against the pre-release version of Visual Studio 2005 and that version did not automatically reference the System.Data.dll. The release version does however so you really don't need to set a reference to it or import it. Importing the System.Data namespace just prevented you from having to prefix the classes in that namespace with the fully qualified namespace (e.g. DataSet would have to be System.Data.DataSet without the imports statement).

This has all been fixed in the released version of Visual Studio 2005.

Thearon
Reply With Quote
Reply


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
Missing System.Data.SQLClient dll mike_abc VB.NET 2 June 3rd, 2011 10:18 PM
Reference to a DLL costaaa C# 0 August 5th, 2006 03:07 PM
How to reference a .dll file? ohChuck C# 4 April 20th, 2006 10:32 AM
DLL & Excel - keep having to reset DLL reference! James Diamond Pro VB 6 2 May 25th, 2004 03:37 AM
TCPSend/ Receive system.dll problem (ch 20) dingke BOOK: Professional C#, 2nd and 3rd Editions 0 March 10th, 2004 05:42 PM



All times are GMT -4. The time now is 06:27 AM.


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