2013年4月11日

CString转char*

摘要: 1.传给未分配内存的const char* (LPCTSTR)指针.CString cstr = "asdd";const char* ch = (LPCTSTR)cstr;ch指向的地址和cstr相同。但由于使用const保证ch不会修改,所以安全.注意此种方法只能在non-UNICODE builds中使用。2.传给未分配内存的指针.CString cstr = "ASDDSD";char *ch = cstr.GetBuffer(cstr1.GetLength() + 1);cstr.ReleaseBuffer();修改ch指向的值等于修改cstr 阅读全文

posted @ 2013-04-11 22:33 云化雨 阅读(922) 评论(0) 推荐(0) 编辑

Windows下使用wget

摘要: 下载wget.exe,http://users.ugent.be/~bpuype/wget/,将其放到C:\Windows\System32文件夹下。下面谈谈如何使用wgetrc配置文件。1、创建一个文件,名为wgetrc,里面写上你的设置,比如#You can set the default proxies for Wget to use for http, https, and ftp.# They will override the value in the environment.https_proxy = http://127.0.0.1:8087/http_proxy = http 阅读全文

posted @ 2013-04-11 20:05 云化雨 阅读(729) 评论(0) 推荐(0) 编辑

windows下搭建svn服务器

摘要: 1、从官网下载svn服务端和客户端;2、安装服务端和客户端,安装客户端后要求重启;3、建立版本库(repository)方法一:命令行方式首先,在E盘下建立svnroot文件夹,然后,打开命令窗口,键入svnadmin create E:\svnroot\repository这样就会在E:\svnroot目录下创建repository文件夹,并在repository文件夹下生成相应文件。(注意不能递归创建,E:\svnroot必须事先建立好)方法二:图形化方式仍然新建E:\svnroot\repository文件夹,这里repository文件夹必须是空的。进入repository文件夹,右键 阅读全文

posted @ 2013-04-11 18:31 云化雨 阅读(7924) 评论(0) 推荐(0) 编辑

导航