DuiLib编译时提示“ 无法打开文件“Riched20.lib””

1.首先移除项目中包含的Riched20.lib静态库,在linker中。

2.找到RichEditUI.cpp中的如下代码:

// Create Text Services component
if(FAILED(CreateTextServices(NULL, this, &pUnk)))
    goto err;
3.用下面的代码替换上面的两行代码:
typedef HRESULT(_stdcall *CTSFunc)(IUnknown *punkOuter, ITextHost *pITextHost, IUnknown **ppUnk);
CTSFunc ctsFunc = NULL;
m_hRiched20 = LoadLibrary(_T("Riched20.dll"));

if (NULL == m_hRiched20)
    goto err;
else
{
    ctsFunc = (CTSFunc)GetProcAddress(m_hRiched20, "CreateTextServices");

    

Laravel 安装

1.Install Composer:
  1.1 windows:
    cd C:\composer
    下载 https://getcomposer.org/installer
    php installer
	
    create composer.json:
    {
      "require": {
      }
    }
    
    php composer.phar install

    推荐直接下载安装包 Composer-Setup.exe 进行安装
  1.2 Linux:
    curl -sS https://getcomposer.org/installer | php
    chmod +x composer.phar
    mv composer.phar /usr/local/bin/composer

使用官方源有时需要开启VPN,可以使用国内镜像(镜像不完整,某些库会报404):
php composer.phar config