Can a Win32 console application detect if it has been run from the explorer or not?

前端 未结 6 1123
误落风尘
误落风尘 2020-12-13 12:49

I have to create a console application which needs certain parameters. If they are missing or wrong I print out an error message.

Now the problem: If someone starts

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-13 13:50

    How about waiting for a keystroke when you display the error message, and not other times?

提交回复
热议问题