Results 1 to 7 of 7

Thread: Can you send vb files to friends to play if they don't have vb?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    14

    Can you send vb files to friends to play if they don't have vb?

    Does anyone know how to send a vb program to a friend who doesn't have vb so they can play it? How do you send it to a friend who does have vb? How could I post it on the forum? (assuming someone want's to play it.....I promise its pretty cool....)

    Thanks,
    -Cam

    EDIT: VB .NET 2003
    Last edited by cam91; Apr 14th, 2007 at 09:35 AM.

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Can you send vb files to friends to play if they don't have vb?

    Yes, you can - assuming you compiled it and your friend has the version of the .Net framework your application uses.

    I believe VS has some kind of "Publish" function, otherwise just compile it and send the executable along with whatever ressources your application uses.
    Last edited by vbNeo; Apr 14th, 2007 at 09:07 AM. Reason: I'm an idiot
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

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

    Re: Can you send vb files to friends to play if they don't have vb?

    You cannot run a VB.NET application without compiling it to an EXE first. Each time you run it in the debugger it is compiled and it's that compiled EXE that is run. That EXE is output to the bin\Debug subfolder under your project folder by default. Assuming that you're using VB Express, select Build -> Build Solution from the main menu and it will create a release build under the bin\Release subfolder. It's THAT executable that you want to distribute. If your app is simple then just the EXE is enough. Someone else can simply copy it to their machine and run it, or run it straight off a CD or memory key if they like. Note that, as vbNeo says, the appropriate version of the .NET Framework is always required to run .NET apps. If you're developing with VB Express then that means version 2.0 or later.

    If your app is more complex than just a single EXE then you may have to distribute DLLs and/or other files too. In that case it may pay to create an installer for it. You can do that by publishing your project or with a third-party deployment tool.
    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

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    14

    Re: Can you send vb files to friends to play if they don't have vb?

    I'll check out the publish function, but the compile and send the executable along with w/e resources your application uses I don't really get. Do you mean just send the file that contains everything pertaining to the program?

    Lol and just so everyone knows what we're dealing with here, its just a little adventure game I made. It has about 65+ bmp images though...

    EDIT: I did the Build ---> Build Solution, but I can't find the exe. lol....

    EDIT2: I think I figured it out - I'll find out in a couple minutes.
    Last edited by cam91; Apr 14th, 2007 at 09:43 AM.

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

    Re: Can you send vb files to friends to play if they don't have vb?

    Like I said, if your app is simple then just the EXE on it's own may be enough. By simple I mean an app that doesn't use any external libraries or data files. If you embed all your images as resources then your app could be just an EXE. Even if it does use external files then you can still use the XCOPY deployment method. All you have to do is make sure that all the libraries and data files are located on the target system where the EXE expects them to be. For libraries that would mean in the same folder. For data files it might mean the same folder, a subfolder, the current user's My Pictures folder or wherever. As long as the path you use in your code is valid on the target system it will work.
    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
    New Member
    Join Date
    Apr 2007
    Posts
    14

    Re: Can you send vb files to friends to play if they don't have vb?

    I think I've got it working now - Thanks!

  7. #7
    Lively Member
    Join Date
    Apr 2007
    Location
    NYC
    Posts
    86

    Re: Can you send vb files to friends to play if they don't have vb?

    If the question was answered, please go to thread tools near the top of the page, and click mark thread as resolved
    There is a thin line between hobby, and obsession.

    If you found my post helpful, please rate it.
    My Laptop System Stats: nVidia 8800 graphics card, Two Intel Core Duo processors, 3.5 GB RAM, Windows Vista Ultimate, 15.4 Widescreen Brightview display, Built-in Webcam and Microphone.
    My Alienware System Stats: nVidia 8800 graphics card, Intel Core Duo Extreme Edition processors, 4 gb RAM, Windows Vista Ultimate, 21 Inch Plasma Display, 42 Inch LCD HD display.

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