본문 바로가기

IT/C++, MFC

C4996 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

 

[그림 1] C4996 오류 메세지 발생

 

[그림 2] 프로젝트 속성 - C/C++ - 고급 - 특정 경고 사용 안 함 - 해당 에러 번호 기입

 

[그림 3] C4996 에러 해결 후 디버그 콘솔창 띄우기

 


 

참고자료

1. https://learn.microsoft.com/ko-kr/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4996?f1url=%3FappId%3DDev16IDEF1%26l%3DKO-KR%26k%3Dk(C4996)%26rd%3Dtrue&view=msvc-170