Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Adding a new reference

Adding a new reference

Scheduled Pinned Locked Moved Visual Basic
helptutorialquestionlearning
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kogorman
    wrote on last edited by
    #1

    Please forgive me, I am new to Visual Basic. I am teaching myself by reading through a book. In one of the examples of the book, it states to add a new reference that you right click on the references of the project and select add new reference. It then brings up an add reference dialog and I am supposed to go to the third tab (projects). I go there and select the project that I want to add, and it gives me an error that "an assembly must have a .dll extension in order to be referenced." Nowhere in the example program does it say that I need to change the extension of the module. Do I need to change the extension or should I be able to just add the project? Thanks for your help! Kogorman

    V R 2 Replies Last reply
    0
    • K Kogorman

      Please forgive me, I am new to Visual Basic. I am teaching myself by reading through a book. In one of the examples of the book, it states to add a new reference that you right click on the references of the project and select add new reference. It then brings up an add reference dialog and I am supposed to go to the third tab (projects). I go there and select the project that I want to add, and it gives me an error that "an assembly must have a .dll extension in order to be referenced." Nowhere in the example program does it say that I need to change the extension of the module. Do I need to change the extension or should I be able to just add the project? Thanks for your help! Kogorman

      V Offline
      V Offline
      Villly
      wrote on last edited by
      #2

      Hello, You do not have to change your module or project from .Bas to .Dll. If you want to add a reference in VB, then those should be either standard or third party .DLL or .OCX etc. When you have these components with you, you can add the reference of that component in your project. You can see the standard 3 DLL's checked in the window of the reference(which provides standard functionality to your project without adding any new reference). If you want to use third party DLL then you have choose it from the folder in which it is placed. So have fun & enjoy the coding. ;) Regards, Vilas Shewale

      1 Reply Last reply
      0
      • K Kogorman

        Please forgive me, I am new to Visual Basic. I am teaching myself by reading through a book. In one of the examples of the book, it states to add a new reference that you right click on the references of the project and select add new reference. It then brings up an add reference dialog and I am supposed to go to the third tab (projects). I go there and select the project that I want to add, and it gives me an error that "an assembly must have a .dll extension in order to be referenced." Nowhere in the example program does it say that I need to change the extension of the module. Do I need to change the extension or should I be able to just add the project? Thanks for your help! Kogorman

        R Offline
        R Offline
        Ray Cassick
        wrote on last edited by
        #3
        1. You can onlt reference assemblies that are libraryies of functions (files that have a .dll extension) I don't think you can make a reference to a project that is used to build an exe file. 2) You need to make sure that the assembly project you are referenceing has been built at least once so there is a dll file to reference. Try right clicking on the project and building it before you add the reference.

        Paul Watson wrote: "At the end of the day it is what you produce that counts, not how many doctorates you have on the wall." George Carlin wrote: "Don't sweat the petty things, and don't pet the sweaty things." Unknown wrote: "I love long walks, especialy taken by those that annoy me." Paraphrased from TMNT: "Cricket? You have to know what a crumpet is to understand Cricket."


        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups