search

Home  >  Q&A  >  body text

c++ - cygwin compiled exe file does not run correctly in windows

A shutdown program made in C++. It will call system("shutdown -s -t 60"); and other codes.
It can run normally in the local cygwin environment. But put the program in other places Windows cannot be used.
Then I added 3 dll files. It can run, but the system("shutdown -s -t 60"); command causes the computer to not respond when running the code.
On my computer It will shut down.
The three added dll files are 1.cygstdc++-6.dll 2.cygwin1.dll 3.cyggcc_s-seh-1.dll
This is a simple program. It just starts the computer A program, and then you can use your mobile phone to control this program on your computer. Solve...

运行样子如下:

我想大声告诉你我想大声告诉你2750 days ago668

reply all(1)I'll reply

  • 漂亮男人

    漂亮男人2017-05-16 13:28:36

    It may be that the permissions are not enough and administrator permissions are required

    reply
    0
  • Cancelreply