Results 1 to 6 of 6

Thread: Running a .exe file made in VB

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    25

    Running a .exe file made in VB

    Hey,
    I made a very simple program that used winsock, and when i made it into a .exe and tried to run it on another computer it didn't work. That computer didn't have vb on it, and it gave an error, something like "winsock.ocx was not found"
    How do I run a program on a computer that doesn't have vb?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Running a .exe file made in VB

    Create an installation package using the Package and Deployment Wizard. All of the dependency files that you program uses needs to be installed, and registered on each end users PC.

  3. #3
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632

    Re: Running a .exe file made in VB

    When have you EVER copied an app (EXE) to a machine and it runs???
    EVERY app you have on your PC was placed there by....yup, an installer
    This installs your app and the correct files, like Winsock.ocx.
    Do a search for package and deployment on this site, alternatively look at the package and deployment section.

    Woka

  4. #4
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Re: Running a .exe file made in VB

    Quote Originally Posted by Wokawidget
    When have you EVER copied an app (EXE) to a machine and it runs???
    EVERY app you have on your PC was placed there by....yup, an installer
    I would just like to tell you that by default all of my PC's so far have had the necdcasary files, even my brand new one... i'm not sure why tho, out of 100% 90% of all people who have my programs can run them straight away, the most common error being CCRPP6.ocx (or summat like that, for progress bars)
    Zeegnahtuer?

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

    Re: Running a .exe file made in VB

    thegreatone,

    That's a good approach if you want your program to work some of the times. But some how I would think that most developers would like for their programs to work all the time and not have to deal with LUCK!!!.

    Use an installer...

  6. #6
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397

    Re: Running a .exe file made in VB

    Just think of it this way...
    Whenever you have to add a reference to your progie, thenm that illustrates that your progie won't even run raw under your IDE! Why would you expect it to be distributable?

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