question

myname-3708 avatar image
0 Votes"
myname-3708 asked Choi76-9199 commented

Process terminated

비주얼 스튜디오 2022에서 결과를 실행하면 "프로세스가 종료되었습니다" 라는 문구가 뜹니다.
이 문구를 없애기 위해 디버그>옵션>디버깅이 중지되면 자동으로 콘솔 닫기를 체크하면 결과화면이 볼 수 없을만큼 빠르게 꺼집니다.
그리고 프로젝트>속성>링커>시스템>하위시스템:콘솔 로 설정해도 마찬가지입니다.
"프로세스가 종료되었습니다" 라는 문구를 없앨 수 있는 방법이 없을까요?

When the results are executed in Visual Studio 2022, the phrase "The process is finished" appears.
To eliminate this phrase, when Debug > Options > Debugging stops, the result screen turns off as quickly as you can't see by checking Close Console automatically.
And it's the same if you set it to Project > Properties > Linker > System > Subsystem: Console.
Is there any way to get rid of the phrase "process has ended"?

c++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MinxinYu-MSFT avatar image
0 Votes"
MinxinYu-MSFT answered MinxinYu-MSFT edited

Hi, @myname-3708

1. Check the button in Tools > Options > Debugging > General:

202100-image.png

2. press Ctrl +F5 or Debug -> Start Without Debugging.

202158-image.png
Best regards,

Minxin Yu


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.






image.png (38.1 KiB)
image.png (13.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @myname-3708

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

0 Votes 0 ·
Castorix31 avatar image
1 Vote"
Castorix31 answered Castorix31 commented

In C++, you can add at end :

 _getch();

(and the Tag is wrong, not related to windows-app-sdk)


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Can you tell me which tag should I choose..?
And, does "end" mean outside of the main?

0 Votes 0 ·

Use the C++ Tag for C++ code...

No, before return 0, like :

 int main(void)
 {
     // code..
     _getch();
     return 0;   
 }
0 Votes 0 ·

I just want to make it appear only "Click any button if you want to finish". (without The process is finished) .....

0 Votes 0 ·
Show more comments