自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

混沌的博客

少无适俗韵,性本爱丘山。 误落尘网中,一去三十年...... 久在樊笼里,不得返自然.

  • 博客(12)
  • 资源 (54)
  • 收藏
  • 关注

原创 dll 二次封装

需要用到二次封装,其实很简单,不过在第二个dll调用第一个dll的方法而已。 笔记下以免忘了。 //dll1.h:#ifndef _dll1_h#define _dll1_h#define MYDLL extern "C" _declspec (dllexport)MYDLL int add(int x,int y);#endif //_dll1_h//dll1.cpp#include

2016-04-22 14:51:34 4187

转载 GetProcAddress 出错,返回NULL(127)

GetProcAddress 出错,返回NULL(getlasterror返回:127—找不到指定的程序).dll中加入 extern “C” 即可。

2016-04-19 16:16:39 8333

原创 CreateProcess 终止进程

最近需要用到,稍微研究了下。 1. 供CreateProcess启动的进程,只是打印出参数而已。#include "stdafx.h"#include <stdlib.h>#include <iostream>#include <string>using namespace std;int main(int argc, char* argv[]){ cout<<"Args

2016-04-19 13:52:42 4282

原创 Cuda dll封装

新建Cuda工程 –Cuda 7.5 Runtime项目-右键属性-配置属性 修改配置类型为dll,好像也不需要。添加一个头文件和一个cpp文件。 test.h test.cpp test.h :#ifndef CUDA_TEST_H#define CUDA_TEST_H__declspec(dllexport) int GetGPUCount(void);#endif test.

2016-04-13 11:02:17 3617 1

原创 Cuda Test

新建C++ 控制台项目添加包含路径和库路径。cuda\v7.5\include;cuda\v7.5\lib\x64;(我的是64位机器)代码如下:#include "stdafx.h"#include <cuda_runtime.h>#pragma comment(lib,"cuda_static.lib")int main(int argc,_TCHAR* argv[]){ i

2016-04-13 09:49:05 873

原创 Boost 入门之3 - 测量时间流逝

#include <Windows.h>#include <iostream>using namespace std;#include <boost/timer.hpp>#include <boost/progress.hpp>using namespace boost;int main(int argc, char* argv[]){ timer t; Sleep(1

2016-04-08 11:41:05 630

原创 Boost 入门之3 - 格式化

// boost_.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <stdlib.h>#include <iostream>#include <boost/format.hpp>using namespace std;//类似c的sprintf,MFC的Format.int _tmain() { cout << boost:

2016-04-08 11:33:51 1066

原创 Boost 入门之2 - 类型转换

相当于atio,aof.#include "stdafx.h"#include <iostream>#inlcude <string>using namespace std;#include <boost\lexical_cast.hpp>using namespace boost;int _tmain(int argc,_TCHAR* argv[]){ int i = 888;

2016-04-08 10:45:13 566

原创 不具名的命名空间(unnamed namespaces)

众所周知,命名空间是用来防止对象的重复定义的。 如下,编译不会出错:namespace n1{ int x;}namespace n2{ int x;}//访问n1.x;n2.x;上面是具名的名字空间,不具名的名字空间也是防止对象重复定义用,只是他没有名字而已。file1.cpp:namespace { //变量x和方法fun只在file1.cpp可见

2016-04-06 11:09:29 5279

原创 Protobuf 入门

下载 https://sourceforge.net/projects/protobuf/?source protobuf-2.6.0.zip https://github.com/google/protobuf 编译 解压,打开protobuf.sln,编译生成库文件(libprotoc.lib,libprotobuf.lib)和编译器 (protoc.exe). (只用生成libpr

2016-04-05 14:25:00 1474

原创 windows 文件描述符

在类Unix系统下用文件描述符descriptor来访问文件。文件描述符是非负整数。打开现存文件或新建文件时,内核会返回一个文件描述符。读写文件也需要使用文件描述符来指定待读写的文件。如下: int fileDescripter = fopen("fileName",O_RDONLY);Windows下一般(最基本的)用fopen访问文件。 FILE * fp = fopen("fi

2016-04-05 10:12:48 4651

原创 c++ 复数类

测试而已,不完整。 complex.h#ifndef _COMPLEX_H#define _COMPLEX_Hclass complex{ public://构造函数 complex():_real(0),_imag(0){} complex(double real):_real(real),_imag(0){} complex(doub

2016-04-02 10:11:37 640

vc6 计算器

VC6写的简单计算器,只能进行加减乘除运算。

2014-09-06

vc读写EXCEL

vc读写EXCEL的内容,用的第三方类CSpreadSheet。

2014-01-12

The VISA Library

The VISA Library

2013-12-21

Agilent Technologies EMC Series Spectrum Analyzers

Agilent Technologies EMC Series Spectrum Analyzers

2013-12-21

编码的奥秘

编码的奥秘

2013-12-21

nRF2401A收发程序

nRF2401A收发程序,查询,中断法都有

2013-07-10

nRF2401A 收发代码

nRF2401A C8051F330收发代码

2013-07-02

VC闪屏振动

VC闪屏振

2012-12-19

Java串口通讯

Java串口通讯

2012-12-15

Porting SICL Application to VISA

Porting SICL Application to VISA

2012-12-14

teechart资料打包

TeeChart for .Net 2010 中文教程.chm TeeChart经验总结 VC中使用TeeChart

2012-12-14

C8051F340 AD控制单片机程序

C8051F340 AD控制单片机程序 C8051F340 AD控制单片机程序

2012-12-12

VC,.BCB串口通讯代码

一共七个工程,VC 1>.Windows API 2>.MsComm Control 3>.CSerialPort Class BCB 4>.Victor Control 5>.MsComm Control 收发串口数据,都测试过,可行。

2012-12-12

VC6 tab control 示列

Vc6 tabcontrol实例工程代码

2012-08-03

Unicode串口通信Demo

Unicode串口通信Demo,文件太大我把编译的删除了,请自己编译,用23串口连接试试效果。

2012-07-30

vc2010中tab control使用

vc2010中tab control使用的Demo

2012-07-30

winpcap编程课件

winpcap编程 winpcap编程 winpcap编程

2011-09-20

Winpcap_编程.ppt

Winpcap编程文档 Winpcap编程文档

2011-09-20

WinPcap_4_1_2.exe

WinPcap安装包 最新版本 http://www.winpcap.org

2011-09-20

WinPcap中文技术文档.chm

模块 WinPcap用户指南 定义 输出函数 过滤串表达式的语法 使用WinPcap编程 WinPcap教程: 循序渐进教您使用WinPcap 获取设备列表 获取已安装设备的高级信息 打开适配器并捕获数据包 不用回调方法捕获数据包 过滤数据包 分析数据包 处理脱机堆文件 发送数据包 收集并统计网络流量 WinPcap核心资料 NPF驱动核心指南 NPF结构与定义 NPF函数 Packet.dll -- 数据包驱动API 如何编译WinPcap 远程捕获 输出结构与定义 外部函数. 对于提供远程捕获的函数引用, 请参阅WinPcap 输出函数 章节的 "Windows-specific Extensions" . 核心数据结构与定义

2011-09-20

C#+语法全解.rar

C#+语法全解.rar C#+语法全解.rar C#+语法全解.rar

2011-06-03

C#电子教案(PPT).rar

C#电子教案(PPT).rarC#电子教案(PPT).rarC#电子教案(PPT).rar

2011-06-03

C#实例编程百例.RAR

C#实例编程百例.RAR C#实例编程百例.RAR C#实例编程百例.RAR

2011-06-03

lucene-2.9.4-src.zip

lucene-2.9.4-src.zip lucene-2.9.4-src.zip

2011-01-14

JDK 1.6 源代码

sun的jdk 1.6的 源代码,搞java开发的绝对要看看的。 有分的捧个分场,没分的........... 发个邮箱给我吧,我直接发给你。

2010-09-17

JQuery学习资料

jquery1.4 API jquery入门教程 javascript高级应用 程序员常用javascript特效

2010-09-07

EditPlus v2.31+注册码

EditPlus v2.31+注册码 EditPlus v2.31+注册码

2010-05-02

AJAX开发简略.pdf

AJAX开发简略.pdf AJAX开发简略.pdf

2010-05-02

WebWork + AJAX(english)

AJAX概述-英文版 WebWork + AJAX(english)

2010-05-02

AJAX概述(PPT)

Asynchronous JavaScript and XML

2010-05-02

USB 驱动开发 实例

USB驱动开发实例USB驱动开发实例USB驱动开发实例

2010-04-22

orb_slam2_demo

orb_slam2 demo, orb_slam2 单目测试, orb_slam2 demo, orb_slam2 单目测试

2018-03-06

RiftDK1源码

--Oculus Rift Development Kit 1 Firmware, Schematics, and Mechanicals for the Oculus Rift Development Kit 1. --Firmware The Tracker firmware uses the CooCox CoIDE for development along with the gcc-arm-embedded toolchain. The ST-Link/V2 is the cheapest way to load firmware onto a Tracker board, though any SWD compatible programmer should work. You can follow these steps to set up a build environment and load firmware onto the board: 1. Install ST-Link drivers if you haven't: http://www.st.com/web/en/catalog/tools/PF258167 2. Install CoCenter: http://www.coocox.org/CooCox_CoIDE.htm 3. Through CoCenter, install CooCox and CoFlash 4. Install gcc-arm-embedded: https://launchpad.net/gcc-arm-embedded/+download 5. Set up gcc-arm-embedded in CooCox: http://www.coocox.org/CoIDE/Compiler_Settings.html 6. Clone our RiftDK1 repository to C:\CooCox\CoIDE\workspace 7. Open the Tracker.coproj 8. Build 9. Plug the ST-Link into the board's 10 pin SWD header. 10. Plug in USB to power the board. 11. Download code to Flash Enjoy! Note that the USB Product ID is set to 0x0001, which matches the production version of the Tracker. If you modify the firmware in a way that changes the USB interface, please change the Product ID to 0x0000. --Mechanical The Mechanical folder contains STEP files of the Rift DK1 housing, control box, and case. --Schematics The Schematics folder contains a pdf of the schematic, as well as Altium Designer files of the schematic and board layout.

2016-10-26

支持win7 64位的hex2bin程序(v2.2)

使用方法: 进入 win64目录 解压→将要转换的hex文件拖拽拖到hex2bin或都 mot2bin上即可,就会在同一个目录下产生bin格式文件。

2016-09-27

otlv4 实例和说明

包括otl源码,文档说明,代码实例。

2016-03-31

Cocos2d-x 贪吃蛇源码(3.6)

Cocos2d-x 贪吃蛇源码

2015-08-06

C# 串口通讯Demo(VS2010)

一个简单的C# 串口通讯Demo,可收发数据。

2015-07-03

FSP频谱仪远程控制文档

FSP频谱仪远程控制,《FSP频谱仪第五章_远程控制-基础.pdf》 《第六章 远程控制-命令.pdf》 第七章 远程控制程序举例.pdf

2015-05-20

Excel_RW_Demo.rar

VC Excel读写 ,通过CSpreadSheet

2015-04-01

VC获取屏幕任意点颜色

VC获取屏幕任意点的位置和颜色,VC获取屏幕任意点的位置和颜色,VC获取屏幕任意点的位置和颜色

2014-09-05

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除