CString类型的replaceint pos = 0;while((pos = it->m_strFile.find(_T("%UC_INSTALL_ROOT%\\"), pos)) != it->m_strFile.npos) it->m_strFile.replace(pos, _tc...
分类:
其他好文 时间:
2014-10-01 02:41:20
阅读次数:
195
#pragma once#include #include #include #ifdef _DEBUG#pragma comment(lib, "libcurld_imp.lib")#else#pragma comment(lib, "libcurl_imp.lib")#endifclass...
分类:
编程语言 时间:
2014-09-28 16:23:32
阅读次数:
286
typedef std::basic_string tstring;inline static void trim(tstring& s){ s.erase(0, s.find_first_not_of(_T("\r\t\n "))); s.erase(s.find_last_not_of(_T("...
分类:
编程语言 时间:
2014-09-28 14:27:52
阅读次数:
222
1、设置窗口格式为半透明getWindow().setFormat(PixelFormat.TRANSLUCENT);2、Android中在非UI线程里更新View的不同方法:* Activity.runOnUiThread( Runnable )* View.post( Runnable )* V...
分类:
移动开发 时间:
2014-09-27 20:00:30
阅读次数:
198
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
移动开发 时间:
2014-09-25 22:56:48
阅读次数:
274
菜单点击高亮效果:$(function () { $("#asideNavUl li").click(function () { $("li[class='on']").removeAttr("class"); $(this).addClass("on"); ...
分类:
Web程序 时间:
2014-09-22 18:06:32
阅读次数:
172
1. 视图中添加可以直接通过单击属性"Items"后的按钮为某一DropDownList控件添加数据项。每添加一项数据就是添加了一个ListItem(列表控件中的数据项)。这种方式比较简单,但是局限性比较大,并不常用。2. 代码添加for(int i=0;i<5;i++){ListItem li=n...
分类:
其他好文 时间:
2014-09-18 14:42:43
阅读次数:
180
1.判断邮箱格式是否正确的代码//利用正则表达式验证-(BOOL)isValidateEmail:(NSString *)email{NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";NSPredic...
分类:
移动开发 时间:
2014-09-11 11:01:21
阅读次数:
180
PHP常用代码大全(新手入门必备)发布:dxy字体:[增加减小]类型:转载PHP常用代码大全(新手入门必备),都是一些开发中常用的基础。需要的朋友可以参考下。--1、连接MYSQL数据库代码2、读取数据库,并实现循环输出循环的内容.........3、如何实现分页,包括两个函数,两个调用//分页函数...
分类:
Web程序 时间:
2014-09-02 15:22:24
阅读次数:
365
//创建一个名为"Player"的游戏物体//并给他添加刚体和立方体碰撞器.player=new GameObject("Player");player.AddComponent("Rigidbody");player.AddComponent("BoxCollider");//创建一个没有名称的游...
分类:
其他好文 时间:
2014-08-29 09:24:47
阅读次数:
287