Adding a new reference
-
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
-
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
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
-
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
- 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."