11 2014 档案
摘要:转 http://www.zedwood.com/article/cpp-md5-function MD5 is no longer considered cryptographically safe for digital signatures, however, because the md5 hash function is still useful for other purpo...
阅读全文
摘要:可直接编译(设置成:使用多字节字符集)转来的,代码:/*http://www.experts-exchange.com/Programming/Editors_IDEs/Q_24506125.html*/#include #include #include #include #include #in...
阅读全文
摘要:使用ShellExecuteA调用exe文件时,指定工作目录需要注意函数原型为:HINSTANCE ShellExecuteA( HWND hwnd, LPCTSTR lpOperation, LPCTSTR lpFile, LPCTSTR lpParameters, LPCTSTR lpDirec...
阅读全文
摘要:一,问题描述 MSVCRTD.lib(crtexew.obj) : error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCRTStartup 中被引用 Debug\jk.exe : fatal error LNK1120: 1 个无法解析的外部命令 error LNK2001: unresolved external symbol _...
阅读全文
摘要:C++ TCHAR* 与char* 互转 在MSDN中有这么一段: Note: The ANSI code pages can be different on different computers, or can be changed for a single computer, leading to data corruption. For the most consistent resu...
阅读全文
摘要:1.引言 C++语言的创建初衷是“a better C”,但是这并不意味着C++中类似C语言的全局变量和函数所采用的编译和连接方式与C语言完全相同。作为一种欲与C兼容的语言, C++保留了一部分过程式语言的特点(被世人称为“不彻底地面向对象”),因而它可以定义不属于任何类的全局变量和函数。但是,C++毕竟是一种面向对象的程序设计语言 ,为了支持函数的重载,C++对全局函数的处理方式与C有明显...
阅读全文
摘要:通过文件二进制数据 与密钥进行异或处理,可加密文件 #ifndef __ENCRYPT__HEAD__ #define __ENCRYPT__HEAD__ #include #include namespace Crypto { /* 加密文件数据: 参数: filePath 需要加密的文件路径 key...
阅读全文