![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C标准
灬错错
这个作者很懒,什么都没留下…
展开
-
常用调试方法 DEBUG宏
常用调试方法原创 2016-01-21 15:09:55 · 1209 阅读 · 0 评论 -
常见指针错误
section 1: void func() { char * p; char buf[1024]; p = malloc( 1024 ); if( p == NULL ) { perror("malloc"); } memset(p , 0 , 1024); p = buf; // 指针重新指向了buf这原创 2016-01-21 16:16:17 · 292 阅读 · 0 评论 -
VC实现 UTF8转换成GB2312
CString ConvertUTF8toGB2312(const char *pData, size_t size) { size_t n = MultiByteToWideChar(CP_UTF8, 0, pData, (int)size, NULL, 0); WCHAR * pChar = new WCHAR[n+1]; n = Mult原创 2016-01-25 17:04:45 · 247 阅读 · 0 评论 -
MFC HTTP访问方法
int CreateHttpLink() { CStringStrServer = ""; CStringstrHtml = ""; StrServer ="http://127.0.0.1/stb/pd02/recordnum/test?req_sn=aabbccddeeff"; CInternetSession *pSession = new CInternetSess原创 2016-01-25 17:08:41 · 1312 阅读 · 0 评论 -
VC静态链接库的使用方法 以及jsoncpp使用方法
#include "stdafx.h" #include #include "json.h" #include #include using namespace std; //静态库的使用方法,还需要将生成的静态库拷贝到当前工作目录下。主意静态库的编译方式要与当前项目的保持一致 #pragma comment(lib, "json_vc71_libmtd.lib") int原创 2016-01-25 17:20:56 · 356 阅读 · 0 评论