Thread: .exe

  1. #1
    Registered User
    Join Date
    Feb 2013
    Posts
    10

    .exe

    How to make a source code into a functional program that a user can open and use without coming across the source code and building or running it. Thank You.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    If you create your project with an IDE, you usually get the option of "debug" and "release" builds.
    The debug build is used by you when developing, testing and debugging the code.
    The release build typically turns on compiler optimisations, and removes any debug only code (so the exe is typically smaller and quicker).

    For simple projects, everything you need to redistribute is in the .exe file, so this is all you need to give to users.

    Note that recompiling for release sometimes flushes out a few extra bugs, so you must always test your release .exe before handing it over to someone else.

    Later on, you might want to investigate ways of signing your programs.
    certificate - Signing a Windows exe file - Stack Overflow
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed