Making a program which....

This is a discussion on Making a program which.... within the C++ Programming forums, part of the General Programming Boards category; How would I make a program which converts a .txt file to an .exe file?...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    18

    Making a program which....

    How would I make a program which converts a .txt file to an .exe file?

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    LOL!

    Just change the extension of the filename. Yeh, that should work.
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

    BigAngryDog.com

  3. #3
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    unless the text file has some sort of code in it, i dont know what you expect to accomplish by turning it into an exe...
    I came up with a cool phrase to put down here, but i forgot it...

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    18
    Lets just say I;m trying to get past school sercurity, they won;t let us download certain file extensions.

  5. #5
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Oh man. I thought you winding us up!

    In that case try (seriously) changing the extension to something that it allowed.

  6. #6
    UNBANNED OneStiffRod's Avatar
    Join Date
    Jan 2002
    Posts
    669
    change .txt to .htm or .html
    My Avatar says: "Stay in School"

    Rocco is the Boy!
    "SHUT YOUR LIPS..."

  7. #7
    Registered User
    Join Date
    Oct 2002
    Posts
    18

    Red face

    Um changing it! No because they have blocked the viewing of any extensions, heard of peekabooty, its a program which I changed the extension to txt so I could view other things at skool but they stopped people changing file extensions and accesing the tool options menu. It works on some computers but I am too lazy to really check each one, a program would be quicker.

  8. #8
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Try this out. Just drop as many files into as needed gives em all a .txt extension, otherwise if someone clicks on it, they get a dummy "version checker" program ( thanx Sang~Drax ).

    BTW: I had to change the file extention to upload it here Funny.
    Attached Files Attached Files
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  9. #9
    Registered User
    Join Date
    Oct 2002
    Posts
    18

    Great!

    Now I need a program which changes it back lol.

  10. #10
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    Attached Files Attached Files
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Making a program run on startup
    By Poincare in forum C Programming
    Replies: 10
    Last Post: 06-21-2009, 01:50 PM
  2. Using variables in system()
    By Afro in forum C Programming
    Replies: 8
    Last Post: 07-03-2007, 01:27 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 07:39 AM
  4. Making interest rate program in C
    By canadas321 in forum C Programming
    Replies: 6
    Last Post: 06-23-2005, 12:59 PM
  5. I need help with making a program which....
    By Tonyukuk in forum C# Programming
    Replies: 1
    Last Post: 04-16-2003, 11:49 PM

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