Git Product home page Git Product logo

vc-ltl's Introduction


# VC LTL——编译精巧的程序原来如此简单

VC LTL 是一个开源的第三方修改VC库,大家都可以免费,无条件,甚至是用于商业环境。本库基于VC140修改,所以也同样适用Common Public License协议。

但我也希望如果你可以在程序的说明文件中声明下,使用了此库,来使更多人受益。

——mingkuang


## 原理:
使用 VC LTL后可以将程序动态链接到系统自带的msvcrt.dll中,来减少程序体积。一般来说一些C/C++的Win32应用程序都可以使用。但是MFC工程不能使用,因为MFC类库太复杂了。

## 支持平台:
支持VS 2015以及2017


## 使用方法:
1:将内容解压到工程目录VC-LTL
2:修改含目录,设置为以下内容,并且取消  从父级或者默认设置中继承
		$(WindowsSDK_IncludePath)
		$(SolutionDir)\VC-LTL\VC\$(PlatformToolsetVersion)\include
		$(SolutionDir)\VC-LTL\VC\$(PlatformToolsetVersion)\atlmfc\include
		$(SolutionDir)\VC-LTL\ucrt\$(TargetUniversalCRTVersion)
		$(SolutionDir)\VC-LTL

3:在库目录增加:$(SolutionDir)VC-LTL\$(PlatformShortName)


4:stdafx.h的开头增加  #include <_msvcrt.h>   ,stdafx.cpp中增加  #include <_msvcrt.cpp>


5:在工程属性 C++ - 所有选项 ,【安全检查】 调整为【禁用安全检查】
                               【运行库】调整为 【多线程DLL/MD】
							   【目标平台】调整为【Windows 10 14393】

6:重新编译你的应用程序(Release),是不是体积就小了很多。如果你编译不通过,咋们可以一起研究研究,共同改进VC LTL。


## Changes:
1.0.0.6 2016-3-18 13:46
1:优化文件引用

1.0.0.5 2016-3-16 20:53
1:新增VC 2017支持

1.0.0.3 2016-11-28 12:54
1:改进对C工程的兼容性

1.0.0.2 2016-06-14 12:52
1:解决C编译不通过问题


1.0.0.1 13:42 2016/5/23
1:解决C++异常无法使用问题

vc-ltl's People

Contributors

mingkuang-chuyu avatar

Watchers

James Cloos avatar wanglehui avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.