Is the executable the binary?

This is a discussion on Is the executable the binary? within the C++ Programming forums, part of the General Programming Boards category; Is the .exe version of your program called the binary??? I have heard people coin the term "Post your source ...

  1. #1
    Shadow12345
    Guest

    Is the executable the binary?

    Is the .exe version of your program called the binary??? I have heard people coin the term "Post your source and not the binary" but I wasn't sure if they meant the executable or not.

    I have visual studio and when I compile my program it generates all of these file types:
    .plg
    .dsw
    .opt
    .dsp
    .ncb

    These are generated for every program I compile, could someone fill me in on what they are used for????

    Thanks.

    Wow I have been asking a lot of questions laterly

    .

  2. #2
    Used Registerer jdinger's Avatar
    Join Date
    Feb 2002
    Posts
    1,065
    Yes. The *.exe is what they mean.

  3. #3
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    What about .com files, how can we make a com file?

  4. #4
    Registered User
    Join Date
    May 2002
    Posts
    63
    If you want to make a .com file, you can create a .bat file (read up on make batch files if you dont know how) and use turbobat to make it into a .com file
    tudehopet uses Borland Compiler 5.5
    and Visual C++ 6.

  5. #5
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    I dont want to use a program to make/convert an exe/bat file into com.

    How can then i make a com file?

    renaming an exe wont work.

  6. #6
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Even if you KNEW how to use a .com file, you probably wouldn't want to. Or, at least, not for anything constructive.

    .com specifies a different memory layout than .exe, at the ASM level. Which means to write a .com file, you either need a really small program, and a really old compiler, or just writing it in ASM.

    However, generally, because of size limitations, the only thing .com files are good at today is trojans, taking advantage of the .com endings of websites.

  7. #7
    Evil Member
    Join Date
    Jan 2002
    Posts
    638
    Also, anything that your compiler generates is usually binary.

    If you can open it in notepad and get readable results, than it is not binary. This rule does not apply for MSVC resource files, however.

    Source is anything that is written by or indirectly by you. .c files .cpp files, .h files, resource files, and resource header files usually.

  8. #8
    I'm Back
    Join Date
    Dec 2001
    Posts
    556
    thank for the info Imperito.

    so you say .com files are created using asm.

    so any suggestions on how to start asm programming, what all should i get to begin and if it is not too much hassle where can i get things for asm progs.

    >>the only thing .com files are good at today is trojans, taking advantage of the .com endings of websites.
    Heheheh. [lets keep that a secret now shall we]

    well also if i remember correctly in DOS shell .com files are executed before .exe files of the same name.

  9. #9
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

  10. #10
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    if you have win98 (//edit: or below), use debug.
    Code:
    C:\>....
    
    debug
    - a 100
    mov ah,02
    mov dl,07
    int 21
    ret
    
    rcx
    (put whatever the address after the 'ret' command is minus 100. this time it's 7.)
    7
    n file.com
    w
    q
    and you have a com program that beeps at you
    Last edited by ygfperson; 05-19-2002 at 08:13 PM.

  11. #11
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    here's the zip, just rename file.zip to file.com and execute

    note: it's 7 bytes long. it isn't a virus. (and even if it was (which it's not) 7 bytes is easy to review)


    /*Note from Moderator: This file has been reported by a user who said it didn't appear to do anything when it was run. As always download it at your own risk */
    Attached Files Attached Files

  12. #12
    Shadow12345
    Guest
    what does that file do?

  13. #13
    Just because ygfperson's Avatar
    Join Date
    Jan 2002
    Posts
    2,493
    Originally posted by ygfperson
    and you have a com program that beeps at you
    specifically, it outputs ascii character 7 to your console

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Running the 'strings' command on my binary executable
    By beginner.c in forum Tech Board
    Replies: 2
    Last Post: 07-16-2007, 03:55 AM
  2. Replies: 0
    Last Post: 11-04-2006, 10:07 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 08:40 PM
  5. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM

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