Meltedd / HVNC

Standalone HVNC Client & Server | Coded in C++ (Modified Tinynuke)
403 stars 123 forks source link

deprecation #2

Closed dodoaska closed 2 years ago

dodoaska commented 2 years ago

is normal ? to get this i use Microsoft Visual Studio Professional 2019

HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Main.cpp(15,4): warning C4996: 'freopen': This function or variable may be unsafe. Consider using freopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Main.cpp(16,4): warning C4996: 'freopen': This function or variable may be unsafe. Consider using freopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Main.cpp(17,4): warning C4996: 'freopen': This function or variable may be unsafe. Consider using freopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. 1>Server.cpp 1>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Server.cpp(382,38): warning C4018: '>': signed/unsigned mismatch 1>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Server.cpp(383,40): warning C4018: '>': signed/unsigned mismatch 1>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\Server\Server.cpp(505,10): warning 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>Generating Code... 1>LINK : D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main_bin\Debug\Win32\Server.exe not found or not built by the last incremental link; performing full link 1>Server.vcxproj -> D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main_bin\Debug\Win32\Server.exe 1>Done building project "Server.vcxproj". 2>------ Build started: Project: Client, Configuration: Debug Win32 ------ 2>Api.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>HiddenDesktop.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>HTTP.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>Panel.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>Utils.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>Main.cpp 2>D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main\common\Api.h(7,32): warning C4455: 'operator ""END_ENC_STR': literal suffix identifiers that do not start with an underscore are reserved 2>Generating Code... 2>LINK : D:\Downloads\HVNC-HVNC - Tinynuke (Fixed)\HVNC-main_bin\Debug\Win32\Client.exe not found or not built by the last incremental link; performing full link 2>Starting pass 1

Meltedd commented 2 years ago

Yes, these warnings are normal and can be fixed if you prefer. Tinynuke was made a long time ago, and some of the code I use from it is outdated.

dodoaska commented 2 years ago

how i can fix?

Meltedd commented 2 years ago

how i can fix?

These warnings will not affect the program. If you wanted to fix this, you would have to change the syntax of some variables and functions that are outdated, and replace deprecated functions with the newer versions.