
VB&C++
敬致知
不患无位,患所以立,不患莫己知,求为可知也。
展开
-
makefile中的@+-符号
【make中命令行前面加上减号】 -means ignore the exit status of the command that is executed (normally, a non-zero exit status would stop that part of htat build) 通常情况下,Makefile在执行到某一条命令时,如果返回值不正常,就会退出当前make进程,通常结合 rm mkdir命令使用,(空文件或者文件不存在都会返回错误) 就是,忽略当前此行命令执行时候所遇到的错误。转载 2021-06-01 18:05:01 · 1370 阅读 · 0 评论 -
按位或的实际使用
int result = 0; if (cs_config.enable_http) { result |= 1; } if (cs_config.enable_https) { result |= 2; } 按位或(OR) 按位或处理两个长度相同的二进制数,两个相应的二进位中只要有一个为1,该位的结果值为1。例如 0101(十进制5) OR 0011(十进制3) = 0111(十进制7) 在C类程序设计语言中,按位或操作符是"|"。这一操作符需要与逻辑或运算符(||)区别开来。 按位原创 2020-12-28 17:23:02 · 2025 阅读 · 0 评论 -
C++积累
size_t 一般用来表示一种计数,比如有多少东西被拷贝等 当有符号整型和无符号整型进行运算时,有符号整型会先自动转化成无符号。-1转化成无符号数为4294967295,远远大于5。 字符串前面加L表示该字符串是Unicode字符串。 声明一个成员函数的时候用const关键字是用来说明这个函数是 “只读(read-only)”函数 判断 std 中的 map 中是否有 key mRegistryMap.find(keyName) != mRegistryMap.end() string str; int .原创 2020-08-04 10:00:34 · 160 阅读 · 0 评论 -
Microsoft VBScript runtime error: ActiveX component can‘t create object: ‘ISWiAuto21.ISWiProject‘
在用installshield2015出包的时候运行: C:\Windows\SysWOW64\cscript.exe ImportExportString.vbs installshield\LCSInstallation\LCSInstallation.bak.ism installshield\LCSInstallation\stringTable.txt 2052 I 时报错: Microsoft VBScript runtime error: ActiveX component can't cr原创 2020-07-14 16:45:41 · 623 阅读 · 0 评论