Thread: appearance of program, how users can run a progam without going near my code

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    27

    appearance of program, how users can run a progam without going near my code

    I wrote up a program in C (Code Blocks 10.05), and it runs. I run it by hitting F9 when I am in CodeBlocks. The little black window opens and the user is prompted for input. I am hoping that several users will use my program.

    I would love to make the program look prettier to the user. What can I do to make the program look nicer than a black window?

    Also - when I run the program, I open the file with the code in CodeBlocks. I then hit F9 so that it runs. I don't want the users to execute the program in this fashion. I want users to click on an icon or on some executable file. Can you advise as to how this can be accomplished.

    THANKS!

  2. #2
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    1) Code Blocks as any IDE uses a compiler. The compiler reads your code file (.c file) and creates an executable file. In windows that is an .exe for example. So in your Hard Drive there is that single file that you can use.

    Where is it? Dunno for Code Blocks. I am sure someone else here knows. Or just search your computer for an executable file with the same name as your code file / project.

    And that file is all you need.

    2) They are called "console applications" the ones you create. You can make a "window application" if you want which can contain anything you want. Like this page you are viewing now.
    You can look under GUI (Graphical User Interface). Or give your Operating System and people can suggest some good libraries you can use. Maybe Code Blocks lets you build a Window Application or something with a similar name (probably when selecting a new project)?

    You could also create a web-based application. Something that will be displayed on a web-browser. So you can host it at a page and people can simply use it without the need to download. This is more difficult than the window application.


    Tell us about your Operating System and what the program is about and we can help more.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    27
    Thanks! I found the exe file on my computer. Wow, that was nice and easy! THANKS!

    The operating system that I am using is Windows XP. My program asks the user to provide nouns, verbs, and other parts of speech which they have been taught that day. It then generates a file which combines these parts of speech into sentences. It is intended to generate worksheets for those learning to speak a second language.

    I hope this is the kind of information you were interested in.

    THANKS AGAIN for your assistance!

  4. #4
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    Well, there are a lot of IDE (with included libraries). I personally use two
    1) QT Creator
    2) Visual Studio
    but they are more

    The first works for a lot of OS, the second mostly for Windows OS, but is quite better.

    For what you want, both are equally as easy.

    Typically you will have a graphic editor which you can graphically create a window you want. Then some simple code to do what you want. The easiest way is to do this
    a) Make graphically the application
    b) Add some code so it runs your .exe file with the specific parameters
    c) Capture the parameters (from text boxes lets say) and make do b) on a specific input (pressing a button for example)

    If you don't really want to bother going on the Graphical User Interface path, just create a picture of the application and ask nicely for someone to create it for you.

    Search it a bit and see what you like and want

  5. #5
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Code::Blocks IDE provides some basic templates for use, such as Windows, Console, DLL, Static Lib, Ogre3D, and much more.

    The only problem is that it doesn't have a resource editor, which means you can't edit your desired window visually ( like Visual Studio for example )

    Yet it contains many useful plugins that can be used to help you in program construction.

    CodeBlocks saves all your project files (.cbp, .c, .cpp, .h, .hpp, and others) in a folder whose name you specify, which in turn is in a directory you specify.
    (Unless you create them somewhere else or you add earlier created ones from somewhere else)

    It saves object files (.obj) in the current build target folder ( "Debug" or "Release" by default ) which in turn is in the "obj" folder, inside the project folder. ( By default )

    Finally, it saves exe files (.exe) in the current build target folder ( "Debug" or "Release" by default ) which in turn is in the "bin" folder, inside the project folder. ( By default )

    I hope that hasn't too complicated...
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Hi, Quiz C program Assignment updated
    By Eman in forum C Programming
    Replies: 19
    Last Post: 11-22-2009, 04:50 PM
  2. Compiling C in Visual Studio 2005
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-16-2009, 04:25 AM
  3. Getting a C# program with a manifest file to run in the debugger
    By Xarzu Athanasop in forum C# Programming
    Replies: 0
    Last Post: 01-18-2008, 06:34 PM
  4. large program code ,please help
    By Ash1981 in forum C Programming
    Replies: 14
    Last Post: 01-30-2006, 06:16 AM
  5. Cannot run program in background?
    By registering in forum Linux Programming
    Replies: 3
    Last Post: 06-16-2003, 05:47 AM