上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页

2019年3月18日

(c++ std) 查找 vector 中的元素

摘要: You can use std::find from <algorithm>: std::find(vector.begin(), vector.end(), item) != vector.end() This returns a bool (true if present, false othe 阅读全文

posted @ 2019-03-18 16:46 liujx2019 阅读(25536) 评论(0) 推荐(0)

[SVN] Couldn't perform atomic initialization

摘要: It was because the partition that svn had been installed in, was full. 阅读全文

posted @ 2019-03-18 10:32 liujx2019 阅读(2607) 评论(0) 推荐(0)

2019年3月15日

Python 基础教程(第二版)笔记 (1)

摘要: P22 除非对 input 有特别的需要,否则应该尽可能使用 raw_input 函数。 长字符串,跨多行,用三个引号代替普通引号。并且不需要使用反斜线进行转义。 P23 原始字符串 并且不能以反斜线结尾 假如nowhere是一个文件夹,应该写成这样 P36 列表方法:1.append, 2.cou 阅读全文

posted @ 2019-03-15 17:21 liujx2019 阅读(188) 评论(0) 推荐(0)

NTSTATUS code 和 Windows 系统错误码 的对应关系

摘要: 出处:https://github.com/dokan-dev/dokany/blob/master/dokan/ntstatus.i 阅读全文

posted @ 2019-03-15 15:39 liujx2019 阅读(794) 评论(0) 推荐(0)

2019年3月14日

[Inno Setup] 在 File Section 之前解压文件

摘要: Prototype: procedure ExtractTemporaryFile(const FileName: String); Description: Extracts the specified file from the [Files] section to a temporary di 阅读全文

posted @ 2019-03-14 17:41 liujx2019 阅读(702) 评论(0) 推荐(0)

[Inno Setup] 对比字符串

摘要: [Code] var MD5Comp: string; procedure ExitProcess(uExitCode:UINT); external 'ExitProcess@kernel32.dll stdcall'; procedure CurStepChanged(CurStep: TSetupStep); begin MD5Comp := '32297BCBF4D8... 阅读全文

posted @ 2019-03-14 17:38 liujx2019 阅读(940) 评论(0) 推荐(0)

[QT] QProcess finished 信号,关联的 slot 必须检查返回码

摘要: void QProcess::finished(int exitCode, QProcess::ExitStatus exitStatus) 阅读全文

posted @ 2019-03-14 17:37 liujx2019 阅读(1081) 评论(0) 推荐(0)

[Inno Setup] 退出安装程序的两种方式

摘要: 1. 完全静默的退出 2. 询问用户之后再退出 另外: https://stackoverflow.com/questions/21737462/how-to-properly-close-out-of-inno-setup-wizard-without-prompt 未试验过 阅读全文

posted @ 2019-03-14 10:37 liujx2019 阅读(2514) 评论(1) 推荐(0)

2019年3月13日

[Inno Setup] 安装完成后调用函数

摘要: 如果使用了通配符,每拷贝一个文件,函数都会被调用一次。 阅读全文

posted @ 2019-03-13 14:16 liujx2019 阅读(1526) 评论(0) 推荐(0)

[Inno Setup] 执行程序,返回值不为0时提示用户

摘要: procedure LoadPerfCounter(); var Ret : Integer; begin if Exec(ExpandConstant('{sys}') + '\lodctr.exe', '/m:test.man', ExpandConstant('{app}') ,SW_HIDE, ewWaitUntilTerminated, Ret) then... 阅读全文

posted @ 2019-03-13 14:12 liujx2019 阅读(439) 评论(0) 推荐(0)

上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 41 下一页

导航