Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Wrox Announcements and Feedback > All Other Wrox Books
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
All Other Wrox Books Do you have a question about a Wrox book that isn't listed anywhere on p2p.wrox.com or where the forum is locked? Here's a forum to post questions about any other Wrox book so that other readers or one of the authors can help you with your questions. IF YOU ARE LOOKING FOR CODE DO NOT ASK "Where can I find the code for this book?" That question is answered here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the All Other Wrox Books 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
Closed Thread
Thread Tools Display Modes
  #1 (permalink)  
Old July 21st, 2004, 02:04 AM
Registered User
Join Date: Jul 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to compile catalog.vb


The following is my oledb version of catalog.vb for chapter 3. when i use vbc to compile it. the box shows all "oledbXXXXXXs" and "commandbehavior" is not declared.
The command line i type in is like this:

>"c\windows\microsoft.net\framework\v1.1.4322\vbc. exe" /t:library catalog.vb /r:system.web.dll /r:system.dll

Maybe i should reference more assembly?
Any help will be great apperciated

Imports System
imports system.data.oledb
imports system.configuration

Namespace MyNS

    Public Class catalog
        Public Function GetDepartmets() as OLEDBReader
          Dim NewStrConn as new OLEDBConnection(connectionstring)

          Dim cmd as new OLEDBCommand("getdepartmets",newstrconn)


          return cmd.executereader(CommandBehavior.closeconnection)
        end Function

    Private Readonly Property connectionstring () as string
        retrun ConfigurationSettings.AppSettings("connectionStrin g")
      End Get
    End Property

    End Class
End Namespace

Closed Thread

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
Why won't my vb program compile to .dll file stevecist ASP.NET 1.0 and 1.1 Basics 0 January 26th, 2007 08:39 PM
How can I de-compile a VB 6 app? BrianWren Pro VB 6 7 November 22nd, 2006 05:18 PM
VB compile error: can't find project or library bambam Beginning VB 6 2 November 16th, 2006 02:16 PM
How can I de-compile a VB 6 app? BrianWren VB How-To 0 November 7th, 2006 03:07 PM
how can I compile my first VB.Net Code? jojo VB.NET 2002/2003 Basics 3 September 17th, 2004 10:29 PM

All times are GMT -4. The time now is 07:28 PM.

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