memdev.h
#ifndef _MEMDEV_H
#define _MEMDEV_H
#define MEM_MAGIC 'm'
#define MEM_RESTART _IO(MEM_MAGIC, 0)//使用内核提供的宏产生命令,
#define MEM_SET _IOW(MEM_MAGIC, 1, int)//改命令向内核传递一个整形的参数
#endif
驱动程序memd...
分类:
系统相关 时间:
2014-08-24 14:13:42
阅读次数:
332
Oracle.ManagedDataAccess.dll
#if INTERACTIVE
#r@"C:\oracle\odp.net\managed\common\Oracle.ManagedDataAccess.dll"
#endif
openOracle.ManagedDataAccess.Client
openOracle.ManagedDataAccess.Type...
分类:
数据库 时间:
2014-08-22 00:25:35
阅读次数:
243
1#ifdef_DEBUGvirtualvoidAssertValid()const;//assert(断言)valid(有效的,正确的)virtualvoidDump(CDumpContext&dc)const;//存储上下文#endif这两个函数是调试用的,第一个函数检查可用性,即是否有效第二个...
分类:
其他好文 时间:
2014-08-20 19:28:24
阅读次数:
254
使用if defined endif根据平台的不同 来加载使用不同的方法#if defined(WIN32) std::cout<<"win32"<<std::endl;#elif defined(POSIX) std::cout<<"posix"<<std::endl;#endif
分类:
其他好文 时间:
2014-08-18 15:53:52
阅读次数:
150
功能一:简单的替换、预处理等功能二:#ifndef/#define/#endif 防止头文件重复引用功能三:连接#define CONNECTION(_x,_y) _x##_yINT a = CONNECTION(10,24); // a = 1024STRING s = CONN...
分类:
其他好文 时间:
2014-08-18 12:57:42
阅读次数:
170
#ifndef#define _DEBUG 0#endif #ifdef _DEBUG#define trace(x) printf(x);#else#define trace(x) ;#endif
分类:
编程语言 时间:
2014-08-16 17:04:20
阅读次数:
193
DES加解密算法是一个挺老的算法了,现在给出它的C语言版。des.h 1 #ifdef __cplusplus 2 extern "C" { 3 #endif 4 5 void setKey(const char key[8]); 6 char* des(const char datas[]);.....
分类:
其他好文 时间:
2014-08-15 19:23:39
阅读次数:
324
网络传输经常用base64编码的数据,因此我们需要将其解码成正常字符集合。 base64.h 1 #ifdef __cplusplus 2 extern "C" { 3 #endif 4 5 char * base64_encode( const unsigned char * binda...
分类:
其他好文 时间:
2014-08-15 19:14:09
阅读次数:
167
#include
#include
#include
#include
#include
#include
#include
#ifndef _WIN32
#include
#include
#include
#include
else
#include
#include
#include
#endif
#include
#incl...
分类:
其他好文 时间:
2014-08-15 17:53:19
阅读次数:
565
C/C++中有两种方式避免同一个文件被include多次,一种是#ifndef方式,一种是#pragma once方式。
方式一:
#ifndef __SOMEFILE_H__
#define __SOMEFILE_H__
... ... // 声明、定义语句
#endif
方式二:
#pragma once...
分类:
其他好文 时间:
2014-08-12 13:42:44
阅读次数:
162