将你的程序动态链接到系统的msvctr.dll中,有效减少程序体积。
温馨提示:
只有Visual Studio 2015才能使用
MFC工程无法使用。
一般来说,一些WTL或者纯Win32的工程可以正常使用。


使用方式:
你现在工程下面建个 VC140LTL文件夹,然后将本工程所有文件丢到里面

项目属性,C/C++目录, 包含目录 中增加
$(WindowsSDK_IncludePath)
$(SolutionDir)\VC140LTL
最后去掉 从父级或者默认设置中继承,点击确定

然后在你的stdafx.h中增加
#include <_msvcrt.h>

然后在你的stdafx.cpp中增加
#include <_msvcrt.cpp>

在吧工程设置为动态链接(MD),在重新编译,即可得到轻巧的exe

Features

  • 有效减少C/C++应用程序体积

Project Activity

See All Activity >

License

Microsoft Public License

Follow Chuyu

Chuyu Web Site

You Might Also Like
Business Continuity Solutions | ConnectWise BCDR Icon
Business Continuity Solutions | ConnectWise BCDR

Build a foundation for data security and disaster recovery to fit your clients’ needs no matter the budget.

Whether natural disaster, cyberattack, or plain-old human error, data can disappear in the blink of an eye. ConnectWise BCDR (formerly Recover) delivers reliable and secure backup and disaster recovery backed by powerful automation and a 24/7 NOC to get your clients back to work in minutes, not days.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Chuyu!

Additional Project Details

Languages

Chinese (Simplified)

User Interface

Win32 (MS Windows)

Programming Language

C++

Registered

2015-12-27