rc.exe nologo

本文介绍如何在使用vs2008编译资源文件时,通过修改rcdll.dll文件来去除烦人的编译器输出信息,实现简单且方便。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

用vs2008编译资源文件的时候实际用的是rc.exe,如果不加开关 /s 会输出

Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.

令人不爽,想要去掉,于是就修改rcdll.dll文件将

40011356    803D 09430540 00    cmp     byte ptr ds:[40054309], 0
4001135D    BE 086A0440         mov     esi, RcDll.40046A08
40011362    75 32               jnz     short RcDll.40011396

改为

40011356    803D 09430540 00    cmp     byte ptr ds:[40054309], 0
4001135D    BE 086A0440         mov     esi, RcDll.40046A08
40011362    EB 32               jmp     short RcDll.40011396

不需要修改重定位表,简单方便。

C:\Qt\Tools\CMake_64\share\cmake-3.30\Modules\CMakeTestCXXCompiler.cmake:73: error: The C++ compiler "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.43.34808/bin/HostX64/x64/cl.exe" is not able to compile a simple test program. It fails with the following output: Change Dir: 'C:/Qt/Examples/Qt-6.6.3/demos/calqlatr/build/Desktop_Qt_6_6_3_MSVC2019_64bit-Debug/CMakeFiles/CMakeScratch/TryCompile-p6qlk1' Run Build Command(s): C:/Qt/Tools/Ninja/ninja.exe -v cmTC_4f979 [1/2] "C:\PROGRA~1\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\cl.exe" /nologo /TP -DQT_QML_DEBUG /DWIN32 /D_WINDOWS /GR /EHsc /Zi /Ob0 /Od /RTC1 -MDd /showIncludes /FoCMakeFiles\cmTC_4f979.dir\testCXXCompiler.cxx.obj /FdCMakeFiles\cmTC_4f979.dir\ /FS -c C:\Qt\Examples\Qt-6.6.3\demos\calqlatr\build\Desktop_Qt_6_6_3_MSVC2019_64bit-Debug\CMakeFiles\CMakeScratch\TryCompile-p6qlk1\testCXXCompiler.cxx [2/2] C:\Windows\system32\cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4f979.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "C:\PROGRA~1\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_4f979.dir\testCXXCompiler.cxx.obj /out:cmTC_4f979.exe /implib:cmTC_4f979.lib /pdb:cmTC_4f979.pdb /version:0.0 /machine:x64 /debug /INCREMENTAL /subsystem:console kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ." FAILED: cmTC_4f979.exe C:\Windows\system32\cmd.exe /C "cd . && C:\Qt\Tools\CMake_64\bin\cmake.exe -E vs_link_exe --intdir=CMakeFiles\cmTC_4f979.dir --rc=rc --mt=CMAKE_MT-NOTFOUND --manifests -- "C:\PROGRA~1\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\Hostx64\x64\link.exe" /nologo CMakeFiles\cmTC_4f979.dir\testCXXCompiler.cxx.obj /out:cmTC_4f979.exe /implib:cmTC_4f979.lib /pdb:cmTC_4f979.pdb /version:0.0 /machine:x64 /d
03-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值