登录
首页 » C++ » CPP-use-shared-memory-

CPP-use-shared-memory-

于 2014-03-10 发布 文件大小:2KB
0 253
下载积分: 1 下载次数: 4

代码说明:

  C++ 使用共享内存实现进程间通信。 文件映射是一种实现进程间单向或双向通信的机制。它允许两个或多个本地进程间相互通信。为了共享文件或内存,所有的进程必须使用相同的文件映射的名字或是句柄。   为了实现共享文件,第一个进程先调用CreateFile方法。接下来调用CreateFileMapping方法来创建一个文件映射对象。并为文件映射指明一个句柄和名称。由于事件,信号,互斥对象和文件映射等这些内核对象都共享同一个名字空间,所以如果这个名字和其他一个对象的名称重名的话那么将创建失败。(C++ use shared memory to achieve inter-process communication)

文件列表:

C%2B%2B use shared memory .txt,6942,2014-03-10

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • _EQ2HspaLocked__03
    this site is just crazy
    2013-10-03 15:16:25下载
    积分:1
  • ZQ28335_CODE_CCS5.5
    28335例程,自己仔细的研究了一阵子,觉得不错,可参考。(28335 routines, good for reference)
    2020-06-17 11:20:02下载
    积分:1
  • BootTools C6657
    自动将 out文件转成SPI NOR FLASH固化程序,用于程序固化和引导。 脚本里面配置了DDR3.(Automatically convert the out file into SPI NOR FLASH curing program for program booting.)
    2017-08-29 17:27:48下载
    积分:1
  • sf_2007523161027
    C#直接读取3ds的源码,引用Microsoft.DirectX 打开三维文件。(Read 3ds C# source code directly.)
    2011-08-09 15:16:33下载
    积分:1
  • C-language
    用C语言实现的各种小程序,例如搬砖问题、打印图形等等。(Using C language implementation of a variety of small programs, such as moving bricks problem, print graphics and so on.)
    2015-03-09 21:57:27下载
    积分:1
  • Source code for arm
    说明:  this is code for arduino,w5100 stm32,arm7,arm cotex,ethernet for arduino,pic,avr
    2019-01-23 13:40:03下载
    积分:1
  • mpeg2 DVB broadcasting TS detailed data structure, and is conducive to the devel...
    mpeg2 DVB 广播 TS的详细数据结构,有利于开发DVB-S的应用-mpeg2 DVB broadcasting TS detailed data structure, and is conducive to the development of the DVB-S Application
    2023-01-12 13:35:03下载
    积分:1
  • 基于C#网络通信,SOCKET客户端与服务端通信协议的序连接测试,IPADDRESS类使用。...
    基于C#网络通信编程,SOCKET客户端与服务端通信协议的程序连接测试,IPADDRESS类使用。-Network communication based on C# programming, SOCKET client and server communication protocols to connect test, IPADDRESS class to use.
    2022-03-14 20:09:55下载
    积分:1
  • 串口温度数据采集并实时显示
    串口温度数据采集并实时显示 读串口数据的原理是,只要当有数据向串口发数据来时,计算机就会自动将其数据写到一个特定的缓冲区,我们只要写程序去读那个特定的缓冲区就可以了. 有数据向串口发过来时,程序可以将数据接收到,接收的数据是字符型的,那么将数据转化为数字型的,再将这个数据的大小作为画图的某一个点的纵坐标,横坐标为数据的序号.将这些点用线连起来就是一个曲线图了,这个就是图形显示基本原理. 查看原来的数据的原理也是这样的,不同的地方就是,数据是从文件中来,同样的也是将多个数据分成一个一个的,然后这一个数据的大小就是画图的某一个点的纵坐标,横坐标同样为数据的序号,再将这些点用线连起来就是曲线图. 图形能移动的原理,是我们首先改变的只是数据,图形并没有变,但图形的形式是由这些数据来确定的,当数据发生变化后,我们通过刷新显示区来变化的.(Serial temperature data acquisition and real-time serial data reading the principle is, as long as when a serial data to the data, the computer will automatically writes data to a specific buffer, we can write specific procedures read that the buffer zone would be fine. Serial data to be sent, process data can be received, the receiving of data is the character, then transform data into digital type, and then the size of the data as a drawing of a point Ordinate, the abscissa serial data. these points will be used to link line is a curve, this is the graphic display the basic tenets. View the original data is the same principle, the difference is, the data from the file, the same data also will be divided into a number one, and then this one is the size of the data to draw a certain point )
    2020-06-26 07:40:02下载
    积分:1
  • ipv6下的一个聊天系统,也算是一个测试系统。
    ipv6下的一个聊天系统,也算是一个测试系统。-ipv6 of a chat system, but also as a test system.
    2022-04-09 20:15:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载