码迷,mamicode.com
首页 >  
搜索关键字:handle    ( 4205个结果
多线程
定义句柄:HANDLE m_hThread;HANDLE m_hThread1;HANDLE m_hMute;创建线程:m_hThread=CreateThread(NULL,0,ThreadProc,this,0,NULL);m_hThread1=CreateThread(NULL,0,Threa...
分类:编程语言   时间:2014-11-21 14:04:51    阅读次数:206
启动外部程序
启动外部程序我们可以使用函数Winexec、ShellExecute和ShellExecuteEx。我推荐大家使用函数ShellExecute,因为它既灵活,又简单。看看下面的例子,用法就清楚了:*: 启动一个程序ShellExecute(Handle,"open",(LPCSTR)"d:\\模拟程...
分类:其他好文   时间:2014-11-21 12:23:02    阅读次数:259
C++之 typedef void *HANDLE
在书写代码与阅读代码的时候,经常会看到这一句代码: typedef void *HANDLE ,它是何方神圣呢?如何理解呢? 不理解它的时候,感觉它很神奇,知道它以后,它就是个typedef的定义,只不过是void*类型罢了,也就是HANDLE等价于void *,我们可以叫它披着句柄皮的指针(PS:指针和句柄是有区别的,在这说句废话);...
分类:编程语言   时间:2014-11-20 15:21:13    阅读次数:129
[ES6] 07. Default Value for function param
Normally, we can set default value for function param://Here use "Hello" as default paramvar receive =function(message="Hello", handle){ handler(me...
分类:其他好文   时间:2014-11-20 06:48:53    阅读次数:185
c++ why can't class template hide its implementation in cpp file?
类似的问题还有: why can't class template use Handle Class Pattern to hide its implementation? || why there are linker problems (undefined reference) to my cl...
分类:编程语言   时间:2014-11-19 20:18:49    阅读次数:526
c++ using Handle Class Pattern to accomplish implementation hiding
Reference material:Thinking In C++ 2nd eidition chapter 5 section "Handle classes"If there's something need to be hidden from clients of the class (su...
分类:编程语言   时间:2014-11-19 20:08:08    阅读次数:235
php文件操作基本用法
<?php /* $fp=fopen("tmp.html","r"); $str=fread($fp,filesize("tmp.html")); $str=str_replace("{title}",'新标题',$str); $str=str_replace("{content}",'新内容',$str); fclose($fp); $handle=fopen('new.html','...
分类:Web程序   时间:2014-11-19 16:01:11    阅读次数:171
OTL简单封装和使用说明
#ifndef OTLV4_HANDLE_H #define OTLV4_HANDLE_H // ================================================================================= // ORACLE, ODBC and DB2/CLI Template Library, Version 4.0.262, // Cop...
分类:其他好文   时间:2014-11-19 15:59:15    阅读次数:252
桥接模式
1、模式定义 桥接模式(Bridge Pattern):将抽象部分与它的实现部分分离,使它们都可以独立地变化。它是一种对象结构型模式,又称为柄体(Handle and Body)模式或接口(Interface)模式。 2、模式结构 桥接模式包含如下角色: Abstraction:抽象类 RefinedAbstraction:扩充抽象类 Implementor:实现类接口 Conc...
分类:其他好文   时间:2014-11-19 01:33:03    阅读次数:174
PL/SQL 游标的使用
?? 游标的使用 ①游标概念 为了处理SQL 语句,ORACLE 必须分配一片叫上下文( context area )的区域来处理所必需的信息, 其中包括要处理的行的数目,一个指向语句被分析以后的表示形式的指针以及查询的活动集(active set)。 游标是一个指向上下文的句柄( handle)或指针。通过游标,PL/SQL可以控制上下文区和处理语句时上下文区会发生些什么事情 ②显式...
分类:数据库   时间:2014-11-17 15:56:15    阅读次数:229
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!