copy two file with binary method

This is a discussion on copy two file with binary method within the C Programming forums, part of the General Programming Boards category; i want copy two file with binary method , for example one of them is JPG and the other is ...

  1. #1
    Registered User arastoo.s's Avatar
    Join Date
    Aug 2009
    Posts
    15

    copy two file with binary method

    i want copy two file with binary method , for example one of them is JPG and the other is EXE. i want to add exe to the end of the jpg and it isn't important for me that the exe corrupted but i want the jpg work correctly and the size of it be changed

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    Why do you want to do this?
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User arastoo.s's Avatar
    Join Date
    Aug 2009
    Posts
    15
    Quote Originally Posted by laserlight View Post
    Why do you want to do this?
    for learning

  4. #4
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by laserlight View Post
    Why do you want to do this?
    Because I'm crazy and can see Christ's face in this picture.
    Attached Images Attached Images  
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    Quote Originally Posted by arastoo.s
    for learning
    If you are trying to learn steganography, this is a very strange way of doing it. It almost sounds like you have malicious intent.

    That said, what you can learn is to read documentation. Find out the JPEG format. It has a comment section; perhaps that can be used here.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User arastoo.s's Avatar
    Join Date
    Aug 2009
    Posts
    15
    anyone can told me how can i do

  7. #7
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    Quote Originally Posted by arastoo.s
    anyone can told me how can i do
    If you need this much spoonfeeding, then I suggest that you change your learning goals as this apparently pointless project is probably beyond you at the moment.

    This whole request of yours still sounds rather fishy to me. I repeat: you need to read up. You probably can find libraries to help you, but this means learning how to use them. If not, if you need to find out the details of the formats involved and implement your own library functionality.

    If you were expecting your complete solution to be handed to you on a silver platter, perhaps you should think again.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  8. #8
    Registered User arastoo.s's Avatar
    Join Date
    Aug 2009
    Posts
    15
    can u Present References for me

  9. #9
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  10. #10
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Then, when the picture is opened, the program will begin executing in the background, unknown to the viewer.

    Not good.

    My shark is coming to get your "Christ" (who looks very much like a zombie, so far). Was he an extra for "Shaun of the Dead" or something?
    Attached Images Attached Images  

  11. #11
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    20,954
    Quote Originally Posted by arastoo.s
    okey dude
    i cant speak EN very will but i can understand a little
    and i want to learning about virus programing and im not to Harassment anyone but i want learning about this subject
    can u told me how can i learning about this object
    *thread closed*
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. File Copy problem
    By reenact12321 in forum C Programming
    Replies: 2
    Last Post: 02-18-2010, 02:08 AM
  2. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM

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