windows errors

Кирилл Анюшкевич 0 Reputation points
2024-08-03T05:42:44.9966667+00:00

I want to ask a question about windows errors.
User's image

This error appears when opening an .exe application without any content. i want to cause the same error in c++ code, also there is an error with user and password input.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,760 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 45,701 Reputation points
    2024-08-03T07:43:47.1966667+00:00

    The image displayed is a dialog created by the shell (explorer.exe). If you programmatically tried to execute a malformed .exe using ShellExecute or CreateProcess the attempt will fail and Windows will return an error code to your application. You can use C++ code to cause the shell to try to execute the malformed .exe. It will then display the desired dialog.

    Microsoft's ExecInExplorer Sample can be used for this purpose.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.