摘要: int cCommFun::ReadFile(string& strPath, char* pDest, int& iLen){ if (pDest == NULL || iLen < 1) { return FALSE; } //文件信息写入内存 std::ifstream file; file. 阅读全文
posted @ 2020-10-20 21:44 龙马8586 阅读(872) 评论(0) 推荐(0) 编辑
摘要: int GetFileInfo(string& strPath, int& iCreateTime, int& iModifyTime, int& iAccessTime, int& iFileLen){ struct _stat tmpInfo; if (_stat(strPath.c_str() 阅读全文
posted @ 2020-10-20 21:40 龙马8586 阅读(3158) 评论(0) 推荐(0) 编辑
摘要: int WriteFile(string& strPath, char* pBuf, int iLen){ //数据写入文件 if (pBuf == NULL) { return FALSE; } if (_access(strPath.c_str(), 0x00) == 0) { _unlink( 阅读全文
posted @ 2020-10-19 22:06 龙马8586 阅读(589) 评论(0) 推荐(0) 编辑
摘要: //单例类定义#define CLASS_INSTANCE_DEF(className) \public: \ static className* GetInstance() \ { \ static className m_Instance; \ return &m_Instance; \ } \ 阅读全文
posted @ 2020-10-18 14:24 龙马8586 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 最近用nodeclub实现股票的输入关键字自动补全股票信息进行搜索功能,原先用jQuery-ui,结果jQuery-ui库太大,所以考虑用其他插件,最终选择使用autocomplete.js,控件简单用着方便。留下记录 源码如下: <!doctype html><html lang="en-US"> 阅读全文
posted @ 2018-04-12 14:41 龙马8586 阅读(1680) 评论(0) 推荐(1) 编辑