c++与c#的类型转换分类:cSharp | 标签: c# system intptr char uint 2012-02-29 19:54 阅读(513)评论(0)编辑删除 //c++:HANDLE(void *) ---- c#:System.IntPtr //c++:By...
分类:
编程语言 时间:
2015-01-27 20:16:50
阅读次数:
246
整理了一下PHP中读取文件的几个方法,方便以后查阅。1.fread string fread ( int $handle , int $length ) fread() 从 handle 指向的文件中读取最多 length 个字节。该函数在读取完最多 length 个字节数,或到达 EOF 的时.....
分类:
Web程序 时间:
2015-01-27 19:50:59
阅读次数:
192
ELM327 Buletooth/Wifi OBD2 Code Scanner is handle scan tool which can work with iPhone,iPad,Android. ELM327 support reading and clearing fault codes,d...
分类:
移动开发 时间:
2015-01-27 17:59:30
阅读次数:
306
1、API描述 在WIN32 API中,串口使用文件方式进行访问,其操作的API基本上与文件操作的API一致。 打开串口 Win32 中用于打开串口的API 函数为CreateFile,其原型为:HANDLE CreateFile ( LPCTSTR lpFileName, //将要打开的串口...
分类:
编程语言 时间:
2015-01-25 12:31:45
阅读次数:
256
SetCommMask 用途:设置串口通信事件 原型:BOOL SetCommMask(HANDLE hFile, //标识通信端口的句柄 DWORD dwEvtMask //能够使能的通信事件 ); 参数说明:-hFile:串口句柄 -dwEvtMask:准备监视的串口事件掩码 ...
分类:
其他好文 时间:
2015-01-25 00:09:36
阅读次数:
260
php实现遍历当前文件夹以及其下所有文件与文件夹的代码,主要是用到了递归,有需要的朋友,可以参考学习下。代码如下:';function getdir($path){if(!is_dir($path)) return;$handle = dir($path);while($file=$handle->...
分类:
Web程序 时间:
2015-01-24 17:18:19
阅读次数:
143
// GetFilePathByPid.cpp : Defines the entry point for the console application.//#include "stdafx.h" int main(){ BOOL b = FALSE; HANDLE hnd = NULL; PRO...
分类:
其他好文 时间:
2015-01-24 14:22:04
阅读次数:
190
加深记忆------ 经常用到这些,做个记录!这里列出两种遍历方式...用到的函数原型: 1 HWND GetWindow( 2 HWND hWnd, // handle to original window 3 UINT uCmd // relationship flag ...
分类:
编程语言 时间:
2015-01-24 00:23:29
阅读次数:
280
1 // 提升升级工具进程权限为SE_DEBUG_NAME,否则XP下无法杀掉进程 2 HANDLE hToken = NULL; 3 if(OpenProcessToken(GetCurrentProcess(), TOKEN_ALL_ACCESS, &hToken)) 4 { 5 LU...
分类:
系统相关 时间:
2015-01-23 19:56:09
阅读次数:
177
#include
#include
#include //包含system()函数
#include
using namespace std;
const char *to_search = "F:\\pro\\VC++ VFW\\*.cpp"; //欲查找的文件,支持通配符*
int main()
{
long handle; //用于查找的句柄
string str,...
分类:
其他好文 时间:
2015-01-23 13:23:27
阅读次数:
210