Packaging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • namitha
    New Member
    • Aug 2007
    • 2

    Packaging

    I have a visual basic project in which there is an image box which has pictures which are dynamically linked... that is the pictures appear in the image box if some action takes place. this has been programmed. But when i package it by including all the links to the pics stored on my comp which will be linked in the code, it gives an error when i run on another comp. it says that the path specified is erroneous. so wat do i do to run on different machines?
  • Tig201
    New Member
    • Mar 2007
    • 103

    #2
    Originally posted by namitha
    I have a visual basic project in which there is an image box which has pictures which are dynamically linked...
    If you are using VB6 you could try an Image List control. it stores the images in the exe and gives easy access to them. I believe that it also exist in VB.net but I think it has more restrictions. To try it add components “Microsoft Windows Common Controls 6.0” May be different in VB.net.

    Comment

    • namitha
      New Member
      • Aug 2007
      • 2

      #3
      Hey i am using VB6. The problem is that when i package it takes in all images but when i open in another computer it shows the images in the folder but when i run the code it says that the link is not found.

      Comment

      • kadghar
        Recognized Expert Top Contributor
        • Apr 2007
        • 1302

        #4
        Originally posted by namitha
        Hey i am using VB6. The problem is that when i package it takes in all images but when i open in another computer it shows the images in the folder but when i run the code it says that the link is not found.
        i think that what tig suggested was more not to pack the images with your exe, but include them into it. Its not a nice way of making it, but it works for sure. If you cant make an image list control, just create as picture boxes as you need, set them to be visible=false, and paste there your pictures.
        After that you'll only have to call them with the picturebox1.pic ture

        Comment

        • pureenhanoi
          New Member
          • Mar 2007
          • 175

          #5
          Originally posted by namitha
          Hey i am using VB6. The problem is that when i package it takes in all images but when i open in another computer it shows the images in the folder but when i run the code it says that the link is not found.
          The packaged application must be installed on another computer for running. It often install all program into Program Files. If your code uses fixed path to specify the image, so when install on another computer, the path goes fail.
          Try using relative path ( like App.Path ) instead of fixed path.

          Comment

          Working...