Results 1 to 18 of 18

Thread: [ask] about power pack

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    [ask] about power pack

    i have a program that consist rectangle from the powerpack....

    but why it can't run in the other computer that doesn't have power pack installed???

    another question....
    some of my program run well in my computer, but why it can't run well in the other computer....??? the program doesn't using any tools

    thx

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Unhappy Re: [ask] about power pack

    You are assuming we all know what the "PowerPack" is here. At a guess, as I for one have no idea what this is, I would assume this is a reference or control or component you are adding to your Visual Studio project and therefore it is probably contained within a DLL or OCX or similar file which requires registering and possibly licencing upon the machine where it is to be used upon.

    With regard to the second part of your question, how are you distributing your application, are you creating a setup program properly? Well even before that - what is your application for? what external applications or technologies does it interact with and what are the Operating Systems which you are compiling your project on, and distributing your application to? Can you define "can't run well"? - what behaviours and possibly error messages do you experience when you run this program upon your target environment?
    You haven't really given us much information to go on at all here! As another guess, which is all we can do here, I would imagine possibly you aren't creating a setup program correctly for your application, or you are targeting a .Net framework version which is possibly not installed upon the target computer.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: [ask] about power pack

    As Alex mentioned you must distribute all the extra controls you are referencing. In this case you must copy the VBPowerPack.dll file to the destination computer. Since that is a .Net assembly you do not have to register it, just copy it to the same folder as your EXE file will do it.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    Quote Originally Posted by Joacim Andersson
    As Alex mentioned you must distribute all the extra controls you are referencing. In this case you must copy the VBPowerPack.dll file to the destination computer. Since that is a .Net assembly you do not have to register it, just copy it to the same folder as your EXE file will do it.
    how to do it????

    can u give me the code or the way

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    The required DLL should already be in your bin folder along with your EXE. Just distribute them both instead of the EXE alone. If it isn't there already then go to the References tab of the project properties and make sure Copy Local is set to True for that reference, then rebuild.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    Quote Originally Posted by jmcilhinney
    The required DLL should already be in your bin folder along with your EXE. Just distribute them both instead of the EXE alone. If it isn't there already then go to the References tab of the project properties and make sure Copy Local is set to True for that reference, then rebuild.
    can u give me the detail step to do it???

    how to input the power pack dll???

    i never do like this

    is there any related site???

    thx

  7. #7
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    Have you looked in your output folder, i.e. the folder your EXE gets created in when you build? Is the PowerPack DLL definitely not there?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    Quote Originally Posted by jmcilhinney
    Have you looked in your output folder, i.e. the folder your EXE gets created in when you build? Is the PowerPack DLL definitely not there?
    yes....there's not in there......

    how to put in the folder???

  9. #9
    Addicted Member
    Join Date
    Oct 2007
    Posts
    133

    Re: [ask] about power pack

    If you used default installation and have installed on the C: drive it will be in this folder.

    C:\Program Files\Microsoft Visual Basic 2005 Power Packs\3.0\Microsoft.VisualBasic.PowerPacks.dll

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    Quote Originally Posted by sytto
    If you used default installation and have installed on the C: drive it will be in this folder.

    C:\Program Files\Microsoft Visual Basic 2005 Power Packs\3.0\Microsoft.VisualBasic.PowerPacks.dll

    so when i deploy my project i put the dll into where??

  11. #11
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649

    Re: [ask] about power pack

    In the same folder as the EXE file.

  12. #12
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    Quote Originally Posted by allopiloping
    yes....there's not in there......

    how to put in the folder???
    You do as I said earlier. You go to the References tab of the project properties, select the PowerPack reference and then set its Copy Local property to True. When you next compile the DLL will be copied to your output folder along with your EXE. You should never have to get libraries from any source other than your output folder. Any libraries you need to explicitly distribute should be copied to the output folder using this approach.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    Quote Originally Posted by jmcilhinney
    You do as I said earlier. You go to the References tab of the project properties, select the PowerPack reference and then set its Copy Local property to True. When you next compile the DLL will be copied to your output folder along with your EXE. You should never have to get libraries from any source other than your output folder. Any libraries you need to explicitly distribute should be copied to the output folder using this approach.
    i still can't do it too....

    is there anyone can help me???

    i will send the whole code...and is there anyone can made it for me???


    thx

  14. #14
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    Can't do what? It's a fairly simple operation. What have you actually tried and what actually happened? Have you opened the References tab of the project properties?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    i mean.....after i do what have u said....i still can't make it become portable

    how to make become portable???

    thx

  16. #16
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    So, you've set the Copy Local property of the Power Pack reference to True, correct? If so, the Power Pack DLL will be copied to the output folder along with the EXE. You need to distribute them both but, then, you already know that because I said it in my first post.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  17. #17
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [ask] about power pack

    I see you've posted to someone else's thread with this same question. In that thread the OP is asking how to create a Setup project. Are you using a Setup project? If so then why haven't we heard about it? If not then why are you posting to that other thread?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Apr 2008
    Posts
    146

    Re: [ask] about power pack

    i need this two purpose.....

    i posted coz it's my first question......so when i see another thread has my other question....so i ask there too.....

    now i can do what u say jim.....
    i forgot the computer that i want to instal my project there's no .Net framework.....

    thx for your kindness

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