-
结构体对齐的算法 < 常用算法与数据结构 >
由于需要做一个自动配置平台的东西,涉及到结构解析的问题。因为结构体在编译时会自动对齐边界,...
结构体对齐的算法 < 常用算法与数据结构 >
由于需要做一个自动配置平台的东西,涉及到结构解析的问题。因为结构体在编译时会自动对齐边界,如果没有一个准确的算法,是不可能得到每一个成员变量的正确偏移量的。为了解决这个问题我在网上查了一圈资料,看了MSDN上的相关介绍,但始终没有找到一个直接的算法,无奈之下只好自己亲自动手,一点一点摸索其中的实现规则。经过一天的实验之后,终于找到了这个算法。为了让以后有需要解决同样问题的朋友们能有个参考,特将此算法提供给vckbase。也谨此感谢vckbase上那些给我提供过帮助的朋友们。
源代码包括两部分,一部分是正式的调用函数,一部分是调用demo程序,全部包含在AlignOffSet.cpp文件中。该文件已经在VC++6.0上通过编译,并运行成功。
- 2022-11-25 01:35:04下载
- 积分:1
-
可以监控到系统剪贴板的动作,并且以16进制显示剪贴板的内容,也可以清楚内容
可以监控到系统剪贴板的动作,并且以16进制显示剪贴板的内容,也可以清楚内容-Can monitor the system clipboard actions, and to 16 hexadecimal display the contents of the clipboard, you can clear the contents of
- 2022-02-05 23:43:37下载
- 积分:1
-
系统设置程序V2.0
系统设置程序V2.0-可以说作者在API函数应用以及系统注册表方面有相当浑厚的功底-system setup procedures V2.0-can be said to the author API function applications, and the registry has a very powerful foundation
- 2023-02-01 08:10:03下载
- 积分:1
-
《Windows经典编程》一书的源码
《Windows经典编程》一书的源码- Windows classic programming, the source book
- 2022-01-25 19:36:47下载
- 积分:1
-
一段隐藏文件的C++程序源代码,可以使文件不可见,实现对保密信息的保护....
一段隐藏文件的C++程序源代码,可以使文件不可见,实现对保密信息的保护.
-Hidden files section of the C++ program source code, can make a document is not visible, to achieve the protection of confidential information.
- 2022-08-08 01:46:32下载
- 积分:1
-
Storage management and allocation of memory partition experiments with pages and...
储存管理实验 对内存分区和分配资源 具有页面和页表分配 给进程分配空间-Storage management and allocation of memory partition experiments with pages and pages of resources allocated to the process of allocation of space for the table
- 2022-02-06 23:33:39下载
- 积分:1
-
一个在线订购提交ASP程序系统 软件语言: 简体中文 软件类型: 国产软件 / 免费版 / 电子购物 运行环境: Win9x/NT/2000/XP/...
一个在线订购提交ASP程序系统 软件语言: 简体中文 软件类型: 国产软件 / 免费版 / 电子购物 运行环境: Win9x/NT/2000/XP/-submit an online ordering system software ASP Program Language : English software types : Domestic software/free version/electronic shopping environment for the operation : CTP /
- 2022-09-06 05:10:02下载
- 积分:1
-
监视文件的存取
监视文件的存取 -Monitoring the access of file
- 2022-03-23 20:27:43下载
- 积分:1
-
安全稳定的实现进线程监控 进线程监视在底层是如何实现的,在win2000源代码中先找到创建线程的函数实现 然后实现线程监视...
安全稳定的实现进线程监控 进线程监视在底层是如何实现的,在win2000源代码中先找到创建线程的函数实现 然后实现线程监视-achieve security and stability of the control into the threads into threads surveillance at the bottom is how to achieve, in WIN2000 first of the source code to find threads to create a function to achieve realization then threaded surveillance
- 2022-12-18 02:15:02下载
- 积分:1
-
1) processor scheduler and its implementation 2) process, the state and its sta...
1)处理机调度及其实现;
2)进程状态及其状态转换;
3)进程控制块PCB及其作用。
-1) processor scheduler and its implementation 2) process, the state and its state transitions 3) process control block PCB and its role.
- 2022-03-02 12:06:09下载
- 积分:1