How does C write data to an EXE file?

Updated on technology 2024-04-19
10 answers
  1. Anonymous users2024-02-08

    This can be achieved under Windows 98, but not with the NT kernel. If you want to write data, save it to ini or registry.

  2. Anonymous users2024-02-07

    As follows: include

    using namespace std;

    #include

    Contains a file stream header file.

    #include

    int main()

    fstream datafile;

    Define the file operand. ,ios::out);Create a file if(!datafile)

    Check whether the file is created.

    cout<<"error

    open"datafile<<"jjhshhs";

    Write data to a file.

    datafile<<"dhjhjhsj";

    Close the file. If the file is not closed, the data will not be written. Because there is an input buffer.

    system("pause");

    return 0;

  3. Anonymous users2024-02-06

    I have two ways to do this...

    The first one needs to change the source**, the second one doesn't; Often, the first method is used to write it yourself, the second is used to check others, but the second one is a bit of a hassle...

  4. Anonymous users2024-02-05

    Under Linux, it can be implemented using the "Command < Input File".

    But I'm not sure on Windows, so I guess it's okay.

  5. Anonymous users2024-02-04

    Guess is that you didn't close when you compiled. exe file.

  6. Anonymous users2024-02-03

    In fact, this is very simple, I have also appeared, c language path do not use Chinese characters, otherwise the compilation can not find the path. You try, it should be like this! ~

  7. Anonymous users2024-02-02

    The exe file is a hexadecimal executable file.

    If you want, you can use a device that supports hex, flexhex, winhex, minihex, etc.

    Open the hexadecimal.

    Browse and open the pending hexadecimal file.

    Once found, double-click in the relevant location to display the Modify dialog box, and enter the value to be modified. Hexadecimal input can usually be selected, or character input can be selected.

    After saving.

  8. Anonymous users2024-02-01

    #include

    void main()

    The path of its Chinese document is changed by itself, and by the way, the file being executed cannot be modified. So there's no way to write 0 on this file.

  9. Anonymous users2024-01-31

    You can right-click on the exe file Kisen Mill, select "Properties", and then click the "Security" tab.

    You can delete "everyone" and set your own spring carrier permission to "read and run". Now that you already know the permissions to change folders, I won't talk much about the permissions of files, almost.

  10. Anonymous users2024-01-30

    1.Add a tag or box component to your program that can be visually set to false.

    2.Write 123456789 in a tag or box and compile.

    3.The compiled program is then converted into a byte set in software.

    4.Convert 123456789 to byte sets.

    5.Convert your email address into a byte set 1234567896Suppose the program converts the byte set to x 123456789 converts the byte set to c, and the email address converts to the byte set to v

    7.Replace the c in x with v

    8.Save the modified file.

Related questions
11 answers2024-04-19

The ** on the first floor contains several key steps. I guess that's enough, hehe.

14 answers2024-04-19

When creating a file output stream object, add the std::ios::ate flag, and all the data is added to the end of the file when exporting. >>>More

9 answers2024-04-19

Recently, the economic data for September have been released one after another, which is frequently associated with "record highs". In September, China's manufacturing purchasing managers' index (PMI) reached its highest point since May 2012; The non-manufacturing business activity index was the highest since June 2014; The industrial producers' ex-factory ** index (PPI) increased by one percentage point from the previous month, and this increase hit a new high in half a year; The total value of imports and exports increased year-on-year, hitting a three-month high, exports increased by 9%, and imports grew faster than the growth rate in August. >>>More

9 answers2024-04-19

The basic process of handling petition reports.

After the petition report is accepted, it mainly goes through the following handling procedures: >>>More

18 answers2024-04-19

with"connstr"Try it.

The complete one is"connstr"] >>>More