一、查看虚拟目录是否存在private bool
IsExitesVirtualDir(string virtualdirname){ bool exited =false; DirectoryEntry
_entry = new DirectoryEntry("IIS://localhost/W3...
分类:
Web程序 时间:
2014-05-20 01:56:24
阅读次数:
401
天气好热,杭州男按摩师表示,应多补充水分,若加入清热、补气的中药材来冲泡茶饮,更具养生功效。例如西洋参可生津止渴、增强抵抗力;添加枸杞能降肝火明目;桂花具美白功效;添加绞股蓝可降火气止渴。另外,若中暑烦躁、头痛头胀时,则可按压人中穴、外关穴来缓解不适。
喝茶饮 以下茶饮经常排软便或易腹泻者再加...
分类:
其他好文 时间:
2014-05-20 00:58:52
阅读次数:
252
#include using namespace std;struct MyStruct{
int s;};int main(){ void* addr = new MyStruct;//缓冲区地址,大小为mysturct的大小 int * naddr
= new (addr)in...
分类:
编程语言 时间:
2014-05-20 00:12:47
阅读次数:
382
1 private void button1_Click(object sender,
EventArgs e) 2 { 3 Form2 f = new Form2(); 4 //第一点:简洁 5 //acti...
加载外部的3DS文件分为两种: 1: 模型与贴图独立于程序的,也就是从外部的文件夹中读取 1
private function load3DSFile():Loader3D2 {3 loader = new Loader3D();4 ...
分类:
其他好文 时间:
2014-05-17 14:34:54
阅读次数:
277
QuicklinksIf you already know what are the
features of the new plug-in and just want to know how to install/use it, you can
directly skip to:J-Link in...
分类:
系统相关 时间:
2014-05-17 14:32:55
阅读次数:
890
貌似有很多方法,先记了再说...1.限制输入数字用法
textfield.setDocument(new IntegerDocument());class IntegerDocument extends
PlainDocument{public void insertString(int offse...
分类:
其他好文 时间:
2014-05-17 14:28:17
阅读次数:
291
import java.util.ArrayList;
import java.util.List;
class Test8Queens3 {
public static StringBuffer result = new StringBuffer();
public static List list = new ArrayList();
public static int...
分类:
其他好文 时间:
2014-05-16 02:53:39
阅读次数:
332
Android中经常会有一些操作比如网络请求,文件读写,数据库操作,比较耗时,我们需要将其放在非UI线程去处理,此时,我们需要处理任务前后UI的变化和交互。我们需要通过类似js中异步请求处理,这里总结我所了解到的,方便自己记忆,也方便别人的浏览。
AsyncTask
new AysncTask().execute();
AsyncTask会按照流程执行在UI线程和一个耗时的任...
分类:
移动开发 时间:
2014-05-16 01:49:28
阅读次数:
452
cocos2dx的内存管理移植自Objective-C, 对于没有接触过OC的C++开发人员来说是挺迷惑的。不深入理解内存管理是无法写出好的C++程序的,我用OC和cocos2dx也有一段时间了,在此总结一下,希望对想用cocos2dx开发游戏的朋友有所帮助。
C++的动态内存管理一般建议遵循谁申请谁释放的原则,即谁通过new操作符创建了对象,谁就负责通过delete来释放对象。如果...
分类:
其他好文 时间:
2014-05-16 01:21:48
阅读次数:
283