CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2006
    Posts
    326

    Add Reference failed

    Hi,

    I want to add a reference to a project.
    The steps are:

    On the Project menu,
    Code:
    click References. 
    Click to select the check box next to the component you want to add. If the component is not listed, locate the .dll or .ocx file using Browse. 
    Click OK.
    Then I opened the project menu again, check the reference but no change.

    Why?


    Thanks

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Add Reference failed

    did you SAVE the project when you closed it? You have to, to keep changes
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Jan 2006
    Posts
    326

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click ok button, is this file saved?

    Sorry for the silly question. I have not found corresponding tutorial online.

  4. #4
    Join Date
    Jan 2006
    Posts
    326

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click ok button, is this file saved?

    Sorry for the silly question. I have not found corresponding tutorial online.

  5. #5
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Add Reference failed

    Save EVERYTHING in the same startup folder (or with links included. vbp can be in separate folder)
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  6. #6
    Join Date
    Jan 2006
    Posts
    326

    Re: Add Reference failed

    I am still confused save vbps.
    Can you please tell me when I close the project, all the files are highlighted.
    Does it mean that all files highlighted will be saved?
    If I click one file then click ok button, is this file saved?

    Sorry for the silly question. I have not found corresponding tutorial online.

  7. #7
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Add Reference failed

    Sounds like it isn't saving them in the original place. Change the folder to the main folder, and then save them. if you open the original file, the reference will be lost
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured