Wrox Programmer Forums
|
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 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 December 28th, 2006, 01:21 PM
Registered User
 
Join Date: Dec 2006
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!

 
Old December 28th, 2006, 01:26 PM
Registered User
 
Join Date: Dec 2006
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?

 
Old December 30th, 2006, 06:37 AM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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
 
Old December 30th, 2006, 11:57 AM
Registered User
 
Join Date: Dec 2006
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?


 
Old January 8th, 2007, 02:44 PM
Thearon's Avatar
Wrox Author
 
Join Date: Dec 2003
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





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





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