-
结构体对齐的算法 < 常用算法与数据结构 >
由于需要做一个自动配置平台的东西,涉及到结构解析的问题。因为结构体在编译时会自动对齐边界,...
结构体对齐的算法 < 常用算法与数据结构 >
由于需要做一个自动配置平台的东西,涉及到结构解析的问题。因为结构体在编译时会自动对齐边界,如果没有一个准确的算法,是不可能得到每一个成员变量的正确偏移量的。为了解决这个问题我在网上查了一圈资料,看了MSDN上的相关介绍,但始终没有找到一个直接的算法,无奈之下只好自己亲自动手,一点一点摸索其中的实现规则。经过一天的实验之后,终于找到了这个算法。为了让以后有需要解决同样问题的朋友们能有个参考,特将此算法提供给vckbase。也谨此感谢vckbase上那些给我提供过帮助的朋友们。
源代码包括两部分,一部分是正式的调用函数,一部分是调用demo程序,全部包含在AlignOffSet.cpp文件中。该文件已经在VC++6.0上通过编译,并运行成功。
- 2022-11-25 01:35:04下载
- 积分:1
-
该系统是由VB环境下开发的酒店管理系统,使用前请先修改.
该系统是由VB环境下开发的酒店管理系统,使用前请先修改.-The system is developed under VB hotel management system, using the former to amend the post.
- 2023-05-16 14:10:03下载
- 积分:1
-
这个例子可对NT或XP下的并口进行直接读写,超方便
这个例子可对NT或XP下的并口进行直接读写,超方便-This example can be NT or XP parallel port under the direct reading and writing, super-convenient
- 2022-09-26 01:40:04下载
- 积分:1
-
程序模仿WINDOWS的注册表,实现的绝大多数功能不过细节上和WINDOWS的注册表相比还是有差距的,如果有兴趣的话可以继续改进,呵呵虽然如此,但在一些对注册表...
程序模仿WINDOWS的注册表,实现的绝大多数功能不过细节上和WINDOWS的注册表相比还是有差距的,如果有兴趣的话可以继续改进,呵呵虽然如此,但在一些对注册表限至比较严的网吧中用来顾顾急救救火还是可以的
冷风 2007-6-14-Procedures mimic WINDOWS registry, the realization of the vast majority of functionality, however the details of WINDOWS registry and there are still gaps in comparison, if are interested can continue to improve,呵呵In spite of this, but in some of the registry to a more stringent limit Internet cafes used to Gu Gu first-aid fire-fighting the cold wind can still 2007-6-14
- 2022-03-13 01:02:20下载
- 积分:1
-
编辑Delphi库(delphi32。DRO)工具(源,D4)
编辑Delphi Repository文件(delphi32.dro)的工具(source,d4)-editing Delphi Repository (delphi32.dro) tools (source, d4)
- 2022-06-29 02:46:21下载
- 积分:1
-
vb程序 将excel中的数据读到cad中
vb程序 将excel中的数据读到cad中-vb program will read the data in excel in cad
- 2022-03-06 06:55:54下载
- 积分:1
-
prepared by the service could access the Windows version of the source! All of t...
一个用C++编写的获取Windows糸统版本的源程序!可供大家在Windows糸统编程时用作原理参考!-prepared by the service could access the Windows version of the source! All of the Windows programming service could use as reference Principle!
- 2023-02-16 05:15:03下载
- 积分:1
-
mfc模拟动态创建,可以在源码中清楚看出mfc的动态创建过程,深入理解mfc...
mfc模拟动态创建,可以在源码中清楚看出mfc的动态创建过程,深入理解mfc-mfc simulate dynamic creation, can be clearly seen in the source code mfc dynamic creation process, in-depth understanding of mfc
- 2022-02-15 16:59:50下载
- 积分:1
-
用VB制作的双
用
VB制作双进程守护程序-VB produced by dual-process daemon
- 2023-01-08 19:10:03下载
- 积分:1
-
系统文件监控程序。
系统文件监控程序。-system files monitoring program.
- 2022-05-20 19:37:00下载
- 积分:1