Results 1 to 24 of 24

Thread: Simple little question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Wink Simple little question

    Hello..

    I made a program in windows XP with Visual Basic 6.0.
    I copied the program to my friend. He has also windows XP.
    But, He doesn't have Visual Basic on his comp.
    I gave him the program itself and VBRun60sp5.exe, so he could run the program.
    For some reason it doesn't work! It says something about comdlg32.dll...

    Please help..
    Arie.

    P.S.
    We both use the same Windows XP Pro.
    Tip Of The Day: Fake it 'till you make it !

  2. #2
    New Member
    Join Date
    Jan 2004
    Location
    U.S.A.
    Posts
    4
    Generally speaking,
    You cannot distribute a compiled VB6 program without some sort of installation mechanism (such as an install utility).
    In your case, when you installed VB on your computer, as part of the installation you received certain dll's that contain the controls you can add to your forms during development.
    When you gave the program to your friend, he does not have the same dll's on his computer. And, even if you supply the dll's, they would have to be registered on the computer (or placed in a specific directory). You can check your project references to see which dll's are used by your exe.

    BTW, VB.Net does not have this problem. If you and your friend have the .Net Framework on your computers, and you compile the program in VB.Net, then you can just place the exe file anywhere on your friends computer and it will run (I think this is reffered to as "Xcopy Deployment").
    Priore

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Thank you..
    I'll check it out..

    Arie.
    Tip Of The Day: Fake it 'till you make it !

  4. #4
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308
    You can make your installation package by Package and Deployment Wizard which is installed with Visual Basic. There are other softwares available as well such as InnoSetup (free) and Setup Factory etc.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    So you say, if I include all the nessecary files into the setup package, and the
    setup will register them to the system, it should work fine?

    Now, what about if I programmed the program in Win XP and I want it to
    work on Win 98... What should I do?

    Arie.
    Tip Of The Day: Fake it 'till you make it !

  6. #6
    I don't do your homework! opus's Avatar
    Join Date
    Jun 2000
    Location
    Good Old Europe
    Posts
    3,863
    It should work on Win98 as well ("should" because I work on Win98).
    You're welcome to rate this post!
    If your problem is solved, please use the Mark thread as resolved button


    Wait, I'm too old to hurry!

  7. #7
    Fanatic Member TheVader's Avatar
    Join Date
    Oct 2002
    Location
    Rotterdam, the Netherlands
    Posts
    871
    Yes, it should. And it doesn't matter on which operating system you write a program. The only thing that matters is that you provide the client PC with all necessary files. That is, your EXE file and all of its dependencies (the ones the installers take care of). Visual Basic files work on every Windows version with the dependencies installed.
    Author for Visual Basic Web Magazine

    My articles on the Web Browser Control:
    Using the Web Browser Control & Using the DHTML Document Object Model

    The examples referenced in the articles can be found here:

  8. #8
    Lively Member
    Join Date
    Jan 2004
    Location
    Canada
    Posts
    71
    what if it's on a crappy old mac?

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    Arie


    It is not as easy as it sounds (if you want to do it correctly). There are things to take into account like distruting system files (should not be done, usually) etc...

    To start yo off on the correct path read this first: http://www.***********/support.html

    Sure there are shortcuts, but do yourself a favor and ignore the shortcuts. In the long run you will be better off.


    You also can use ********** with Inno Setup for a better Inno Setup fit.

  10. #10

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636

    Thumbs up

    I need it to work on 98,2K,Me and XP...

    I'll try it out...
    Ok.. Thank you guys for the help.

    Arie.
    Tip Of The Day: Fake it 'till you make it !

  11. #11
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    You don't need to make an installer. You simply need to give the person the VB6 runtimes. You can find an installer for those, which works like .NET framework where it will install and register the needed items on the system and then your app will work from any folder or you can just leave all the files in the same directory as your program.
    Originally posted by endusto
    what if it's on a crappy old mac?
    Are you joking?

  12. #12
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    Originally posted by kasracer
    You don't need to make an installer. You simply need to give the person the VB6 runtimes. You can find an installer for those, which works like .NET framework where it will install and register the needed items on the system and then your app will work from any folder or you can just leave all the files in the same directory as your program.
    Are you joking?

    Are You JOKING???

  13. #13
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by randem
    Are You JOKING???
    No, I did it frequently when I used to use VB6.

  14. #14
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    kasracer


    I run my car on empty frequently... Are you saying that how a car should be operated???


    Just because on occasion you get away with something does not mean that's the way it should be done.

  15. #15
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by randem
    kasracer


    I run my car on empty frequently... Are you saying that how a car should be operated???
    If you run your car on empty, then it doesn't run at all therefore you don't run the car at all.

    I have no idea what you're getting at, what I said is true.

  16. #16
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    kasracer


    On very simple projects you can get away with it. Try this:

    Make a project with some VB refrences in them and just copy your exe and install the runtime files on a computer that never had any VB apps installed on it. Your app will fail terribly.

  17. #17
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by randem
    kasracer


    On very simple projects you can get away with it. Try this:

    Make a project with some VB refrences in them and just copy your exe and install the runtime files on a computer that never had any VB apps installed on it. Your app will fail terribly.
    What are you talking about? If you only use the runtimes and you install them, the application runs perfectly fine. If you referenced some other controls and such, you obviously need to copy those into the executable's folder.

  18. #18
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    kasracer

    Well, you keep doing that. I that kind of thinking that keeps me making a living. Thanks.

  19. #19
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by randem
    kasracer

    Well, you keep doing that. I that kind of thinking that keeps me making a living. Thanks.
    Uh? So because you don't know how to run an application without an installer, I am helping to make you a living?

    Right.....

  20. #20

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    Guys, guys.. chill out..

    I think the best way is to prepare a well constructed installation program, and It should work fine on 98 to XP, right?

    Arie.
    Tip Of The Day: Fake it 'till you make it !

  21. #21
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    Arie

    Yes, but it takes more than just copying files. Such as there are different JET engines for different OS's each one with the same name. So you cannot just copy the same files to every OS... or e even in the same folder.

  22. #22

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    I think that my programs are not using special out expected libraries...
    I use the normal VB controls and the Common Dialog 6.0...
    That's all..

    Arie.
    Tip Of The Day: Fake it 'till you make it !

  23. #23
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    Arie


    Installation problems are our specialty. Try using ********** with Inno Setup (both are free). You can use PDW that comes with VB also. ********** will get let you know all the files you need to include in your installation.

    It does not matter how little or how much you have in your project. You still need to get it installed properly for it to work properly on all OS's.

    Did you read this: http://www.***********/support.html

    You can download ********** from: http://www.**********.com/**********.html

    You can download Inno Setup from: http://www.jrsoftware.org

  24. #24

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Israel
    Posts
    636
    I read and downloaded this great programs InnoSetup and **********...
    I compiled a setup, later I'll check it on my friend's computer..
    I let you know the results...

    Arie.
    Tip Of The Day: Fake it 'till you make it !

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