giving .exe files to other people...

This is a discussion on giving .exe files to other people... within the C++ Programming forums, part of the General Programming Boards category; Ok if I gave a .exe file only to anouther person woudl they be able to open it? Or do ...

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    731

    giving .exe files to other people...

    Ok if I gave a .exe file only to anouther person woudl they be able to open it? Or do I need to include some other files?

    Because it didn't work for my friend and I only gave her the .exe file.

  2. #2
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    It should work as long as the exe was compiled for their operating system.
    Woop?

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    1) Does the EXE work for you?

    2) There are cases when the exe does rely on external files, but I doubt this program did. Could you give us a bit more detail about this program?

  4. #4
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    ok she has windows xp just like me and I just compiled it using dev-C++. She says she can't open it. Or it doesn't open.

    Edit: Yes it does work for me just fine.

    edit again: That is about as detailed as I can get.

  5. #5
    Sweet
    Join Date
    Aug 2002
    Location
    Tucson, Arizona
    Posts
    1,807
    Is it opening and closing? cause that would be the only explantion i could give try adding a cin.get() before your return 0;
    Woop?

  6. #6
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    hmm....ok well I wil ltry the cin.get() but hwat si it supose to do?

    Because I got a getch() before the return 0; so you ahve to press enter if tha tis what that is supose to do.

  7. #7
    Registered User
    Join Date
    Aug 2004
    Posts
    4
    what compiler are you using?

  8. #8
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    Quote Originally Posted by lucas4ce
    what compiler are you using?
    Maybe read the thread?
    Quote Originally Posted by Rune Hunter
    I just compiled it using dev-C++.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  9. #9
    Registered User
    Join Date
    Aug 2004
    Posts
    4
    Quote Originally Posted by pianorain
    Maybe read the thread?
    thx for the useful input

  10. #10
    Carnivore ('-'v) Hunter2's Avatar
    Join Date
    May 2002
    Posts
    2,879
    >>She says she can't open it. Or it doesn't open.
    Assuming no error message appears, I'd say the closest possibility is the one about it opening and closing really fast. Are you running the program from an IDE, or are you running it manually by double-clicking the .exe? Because some IDE's will add a pause at the end of the program for you, but when you doubleclick the .exe it doesn't pause for you.

    **EDIT**
    >>thx for the useful input
    More useful than yours, I must say. At least he provided the requested info.
    Just Google It. √

    (\ /)
    ( . .)
    c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.

  11. #11
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    Oh don't worry about it opening and closing. I probebly should have stated this, but I use conio.h and then the function getch(). I don't know why I choose that, there is probebly an easier way to do it but I perfere that way. So that is not why.

  12. #12
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    As a side note, conio.h is not standard. You should really use getc() in iostream.h.

  13. #13
    Registered User
    Join Date
    Aug 2004
    Posts
    731
    getc doesn't work...?

  14. #14
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Oh my bad... I was thinking of get

    Code:
    #include <iostream> 
    
    int main(void)
    {
      std::cout <<"Press [Enter] to continue" <<std::endl;
      std::cin.get();
      return(0);
    }
    There's a bunch of options for waiting for a keypress listed in the FAQ - note that all of them have disadvantages except for the first two, which are preferred in one language or another.

  15. #15
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    it didn't work for my friend and I only gave her the .exe file.
    That is about as detailed as I can get.
    [chant grade=1]

    oooOOOooohhh.... Rune Hunter's got a girl friend!
    Rune Hunter and a girl with a faulty .exe file,
    Sitting in in XP,
    E-X-E-C-U-T-I-N-G,
    First comes source,
    Then comes prog,
    Then comes warnings,
    And a linker error!

    [/chant]

Page 1 of 2 12 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM
  2. Folding@Home Cboard team?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 398
    Last Post: 10-11-2005, 08:44 AM
  3. Batch file programming
    By year2038bug in forum Tech Board
    Replies: 10
    Last Post: 09-05-2005, 03:30 PM
  4. 0byte .exe files..
    By Marc in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-02-2004, 11:15 AM
  5. Religious Bull****
    By Witch_King in forum A Brief History of Cprogramming.com
    Replies: 119
    Last Post: 10-23-2001, 07:14 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21