C/C++ 判断字符串是否为 utf-8 编码
C/C++ 判断字符串是否为 utf-8 编码 - C/C++ 中使用 UTF-8 编码的规则:如果只有一个字节则其最高二进制位为 0 ;如果是多字节,其第一个字节从最高位开始,连续的二进制位值为 1 的个数决定了...
OpenGL ES 版本介绍
OpenGL ES 版本介绍 - OpenGL ES 1.0 以 OpenGL 1.3 规范为基础 OpenGL ES 1.1 以 OpenGL 1.5 规范为基础 OpenGL ES 2.0 以 OpenGL 2.0 规范为基础 OpenGL ES 3.0 于2012年公布,在OpenGL 3.x ...
C/C++ uafxcwd.lib(afxmem.obj) : error LNK2005: “void * __cdecl operator new(unsigned int)已经在 LIBCMTD.lib(new.obj) 中定义解决办法
C/C++ uafxcwd.lib(afxmem.obj) : error LNK2005: 'void * __cdecl operator new(unsigned int)已经在 LIBCMTD.lib(new.obj) 中定义解决办法 - 1>uafxcwd.lib(afxmem.obj) : error LNK2005: 'vo...
C/C++ nafxcw.lib(appui1.obj) : error LNK2005: “class CWinApp * __cdecl AfxGetApp(void)” (?AfxGetApp@@YAPEAVCWinApp@@XZ) 已经在 uafxcwd.lib(afxinl2.obj) 中定义
C/C++ nafxcw.lib(appui1.obj) : error LNK2005: 'class CWinApp * __cdecl AfxGetApp(void)' (?AfxGetApp@@YAPEAVCWinApp@@XZ) 已经在 uafxcwd.lib(afxinl2.obj) 中定义 - 附加依赖库:nafxcwd...
C/C++ 获取 exe 路径
C/C++ 获取 exe 路径 - std::string GetProgramDir() { char exeFullPath[MAX_PATH]; // Full path std::string strPath = ''; GetModuleFileName(NULL,exeFullPath,MAX_PATH); //获取带有可执...
Object-C UIImage 和 CVPixelBufferRef 相互转换
Object-C UIImage 和 CVPixelBufferRef 相互转换 CVPixelBufferRef 转 UIImage UIImage 转 CVPixelBufferRef kCVPixelFormatType_OneComponent8 是单通道的黑白数据; kCVPixelFormatType_32ARG...
Xcode – 常用快捷键的使用
Xcode – 常用快捷键的使用 Command + R 运行。 Command + . 停止 F6 单步调试 F7 跳入 F8 继续 新建项目 command+shift+n 新建文件 command+n 新建空文件 command+control+n 打开 command+o 关...
C/C++ void* 和 int 转换
C/C++ void* 和 int 转换 - 在文章 《数据类型/变量类型》 中有做介绍, int 属于整数;int 和 float 转换请参考 《int 和 float 相互转换》,void* 和 int 转换如下: