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. How to change reference path in VB6

How to change reference path in VB6

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
6 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.
  • A Offline
    A Offline
    Andraw Tang
    wrote on last edited by
    #1

    Hi, dear all, I have an existing VB6 project installed in my computer, I have its source codes. Now I will create another project based on it. The strange thing is that there is a reference which is always pointed to the previous project, all others are ok after modification, only this one doesn't work. I open the .vbp file, modify the path mannually, save it. but when I open the project, it still points to previous project path, I use browse button in reference dialog to relocate it, it still not change. What should I do? If I remove the prevois project, I am afraid of that the new project won't work since that file is missing. Thanks!

    D A 2 Replies Last reply
    0
    • A Andraw Tang

      Hi, dear all, I have an existing VB6 project installed in my computer, I have its source codes. Now I will create another project based on it. The strange thing is that there is a reference which is always pointed to the previous project, all others are ok after modification, only this one doesn't work. I open the .vbp file, modify the path mannually, save it. but when I open the project, it still points to previous project path, I use browse button in reference dialog to relocate it, it still not change. What should I do? If I remove the prevois project, I am afraid of that the new project won't work since that file is missing. Thanks!

      D Offline
      D Offline
      DaveAuld
      wrote on last edited by
      #2

      I used to move project between machines without any problem. Edit the vbp files to change the paths using notepad, make sure you also change any of the controls locations to the correct depth, i used to find occasionally had one too many ../../../ depending on which machine i was on.

      Dave Don't forget to rate messages!
      Find Me On: Web|Facebook|Twitter|LinkedIn
      Waving? dave.m.auld[at]googlewave.com

      A 1 Reply Last reply
      0
      • D DaveAuld

        I used to move project between machines without any problem. Edit the vbp files to change the paths using notepad, make sure you also change any of the controls locations to the correct depth, i used to find occasionally had one too many ../../../ depending on which machine i was on.

        Dave Don't forget to rate messages!
        Find Me On: Web|Facebook|Twitter|LinkedIn
        Waving? dave.m.auld[at]googlewave.com

        A Offline
        A Offline
        Andraw Tang
        wrote on last edited by
        #3

        Dave, Thanks! Yes, I open the .vbp in notepad, the strange thing is that in .vbp file the path is in current project, but when I open the project from VB6, and click "Reference", that reference's path is pointing to previous project again. If I save the project, and open .vbp file, the refernece path is changed back to previous project. There are more than 10 reference, all others are ok, only this one doesn't work. Did you encounter this issue before?

        D 1 Reply Last reply
        0
        • A Andraw Tang

          Dave, Thanks! Yes, I open the .vbp in notepad, the strange thing is that in .vbp file the path is in current project, but when I open the project from VB6, and click "Reference", that reference's path is pointing to previous project again. If I save the project, and open .vbp file, the refernece path is changed back to previous project. There are more than 10 reference, all others are ok, only this one doesn't work. Did you encounter this issue before?

          D Offline
          D Offline
          DaveAuld
          wrote on last edited by
          #4

          To be honest its been that long since i went near vb6, i can't remember..........hopefully never need to go near it again.

          Dave Don't forget to rate messages!
          Find Me On: Web|Facebook|Twitter|LinkedIn
          Waving? dave.m.auld[at]googlewave.com

          A 1 Reply Last reply
          0
          • D DaveAuld

            To be honest its been that long since i went near vb6, i can't remember..........hopefully never need to go near it again.

            Dave Don't forget to rate messages!
            Find Me On: Web|Facebook|Twitter|LinkedIn
            Waving? dave.m.auld[at]googlewave.com

            A Offline
            A Offline
            Andraw Tang
            wrote on last edited by
            #5

            I also wish this is the last project in VB6. Thanks!

            1 Reply Last reply
            0
            • A Andraw Tang

              Hi, dear all, I have an existing VB6 project installed in my computer, I have its source codes. Now I will create another project based on it. The strange thing is that there is a reference which is always pointed to the previous project, all others are ok after modification, only this one doesn't work. I open the .vbp file, modify the path mannually, save it. but when I open the project, it still points to previous project path, I use browse button in reference dialog to relocate it, it still not change. What should I do? If I remove the prevois project, I am afraid of that the new project won't work since that file is missing. Thanks!

              A Offline
              A Offline
              Anshul R
              wrote on last edited by
              #6

              Why don't you copy the code to new files in a new project? (Know it is a boring way. But might help you if you lack time)

              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