Wrox Programmer Forums
|
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 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
  #1 (permalink)  
Old July 21st, 2004, 02:04 AM
Registered User
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to compile catalog.vb

Hi

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

<code>
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)
          cmd.commandtype=commandtype.storedprocedure

          NewStrConn.open()

          return cmd.executereader(CommandBehavior.closeconnection)
        end Function


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

    End Class
End Namespace
</code>







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 09:39 PM
How can I de-compile a VB 6 app? BrianWren Pro VB 6 7 November 22nd, 2006 06:18 PM
VB compile error: can't find project or library bambam Beginning VB 6 2 November 16th, 2006 03:16 PM
How can I de-compile a VB 6 app? BrianWren VB How-To 0 November 7th, 2006 04:07 PM
how can I compile my first VB.Net Code? jojo VB.NET 2002/2003 Basics 3 September 17th, 2004 10:29 PM





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