Classes, Methods and RTTI

Delphi反编译实战:从EXE黑盒到可读代码的完整指南 软件逆向工程是理解、分析和重构已编译程序内部逻辑的关键技术,其核心原理在于通过静态与动态分析手段,解析二进制文件的指令、数据结构和执行流程。这项技术的工程价值在于能够恢复丢失的源代码、进行安全审计、漏洞挖掘以及遗留系统的维护与二次开发,广泛应用于软件维护、安全研究和数字取证等领域。本文聚焦于Delphi语言生态,深入探讨如何利用IDR等工具链对编译后的Windows桌面应用进行反编译与重构,重点解析PE文件结构分析、RTTI信息提取和Pascal伪代码生成等核心环节,并结合实际案例演示如何从可执行文件中恢复 阅读详情

 

Abstract

Microsoft Visual C++ is the most widely used compiler for Win32 so it is important for the Win32 reverser to be familiar with its inner working. Being able to recognize the compiler-generated glue code helps to quickly concentrate on the actual code written by the programmer. It also helps in recovering the high-level structure of the program.

In part II of this 2-part article (see also: Part I: Exception Handling), I will cover how C++ machinery is implemented in MSVC, including classes layout, virtual functions, RTTI. Familiarity with basic C++ and assembly language is assumed.

 

Basic Class Layout

To illustrate the following material, let's consider this simple example:

  1.  class A
  2.     {
  3.       int a1;
  4.     public:
  5.       virtual int A_virt1();
  6.       virtual int A_virt2();
  7.       static void A_static1();
  8.       void A_simple1();
  9.     };
  10.     class B
  11.     {
  12.       int b1;
  13.       int b2;
  14.     public:
  15.       virtual int B_virt1();
  16.       virtual int B_virt2();
  17.     };
  18.     class C: public A, public B
  19.     {
  20.       int c1;
  21.     public:
  22.       virtual int A_virt2();
  23.       virtual int B_virt2();
  24.     };

In most cases MSVC lays out classes in the following order:

  • 1. Pointer to virtual functions table (_vtable_ or _vftable_), added only when the class has virtual methods and no suitable table from a base class can be reused.
  • 2. Base classes
  • 3. Class members

Virtual function tables consist of addresses of virtual methods in the order of their first appearance. Addresses of overloaded functions replace addresses of functions from base classes.

Thus, the layouts for our three classes will look like following:




  1. class A size(8):
  2.         +---
  3.      0  | {vfptr}
  4.      4  | a1
  5.         +---
  6.     A's vftable:
  7.      0  | &A::A_virt1
  8.      4  | &A::A_virt2
  9.     class B size(12):
  10.         +---
  11.      0  | {vfptr}
  12.      4  | b1
  13.      8  | b2
  14.         +---
  15.     B's vftable:
  16.      0  | &B::B_virt1
  17.      4  | &B::B_virt2
  18.     class C size(24):
  19.         +---
  20.         | +--- (base class A)
  21.      0  | | {vfptr}
  22.      4  | | a1
  23.         | +---
  24.         | +--- (base class B)
  25.      8  | | {vfptr}
  26.     12  | | b1
  27.     16  | | b2
  28.         | +---
  29.     20  | c1
  30.         +---
  31.     C's vftable for A:
  32.      0  | &A::A_virt1
  33.      4  | &C::A_virt2
  34.     C's vftable for B:
  35.      0  | &B::B_virt1
  36.      4  | &C::B_virt2

The above diagram was produced by the VC8 compiler using an undocumented switch. To see the class layouts produced by the compiler, use: -d1reportSingleClassLayout to see the layout of a single class -d1reportAllClassLayout to see the layouts of all classes (including internal CRT classes) The layouts are dumped to stdout.

As you can see, C has two vftables, since it has inherited two classes which both already had virtual functions. Address of C::A_virt2 replaces address of A::A_virt2 in C's vftable for A, and C::B_virt2 replaces B::B_virt2 in the other table. 

Calling Conventions and Class Methods 

All class methods in MSVC by default use _thiscall_ convention. Class instance address (_this_ pointer) is passed as a hidden parameter in the ecx register. In the method body the compiler usually tucks it away immediately in some other register (e.g. esi or edi) and/or stack variable. All further adressing of the class members is done through that register and/or variable. However, when implementing COM classes, _stdcall_ convention is used. The following is an overview of the various class method types.

1) Static Methods
Static methods do not need a class instance, so they work the same way as common functions. No _this_ pointer is passed to them. Thus it's not possible to reliably distinguish static methods from simple functions. Example:

    A::A_static1();
    call    A::A_static1


2) Simple Methods
Simple methods need a class instance, so _this_ pointer is passed to them as a hidden first parameter, usually using _thiscall_ convention, i.e. in _ecx_ register. When the base object is not situated at the beginning of the derived class, _this_ pointer needs to be adjusted to point to the actual beginning of the base subobject before calling the function. Example:

    ;pC->A_simple1(1);
    ;esi = pC
    push    1
    mov ecx, esi
    call    A::A_simple1

    ;pC->B_simple1(2,3);
    ;esi = pC
    lea edi, [esi+8] ;adjust this
    push    3
    push    2
    mov ecx, edi
    call    B::B_simple1


As you see, _this_ pointer is adjusted to point to the B subobject before calling B's method.

3) Virtual Methods
To call a virtual method the compiler first needs to fetch the function address from the _vftable_ and then call the function at that address same way as a simple method (i.e. passing _this_ pointer as an implicit parameter). Example:

    ;pC->A_virt2()
    ;esi = pC
    mov eax, [esi]  ;fetch virtual table pointer
    mov ecx, esi
    call [eax+4]  ;call second virtual method
    
    ;pC->B_virt1()
    ;edi = pC
    lea edi, [esi+8] ;adjust this pointer
    mov eax, [edi]   ;fetch virtual table pointer
    mov ecx, edi
    call [eax]       ;call first virtual method


4) Constructors and Destructors
Constructors and destructors work similar to a simple method: they get an implicit _this_ pointer as the first parameter (e.g. ecx in case of _thiscall_ convention). Constructor returns the _this_ pointer in eax, even though formally it has no return value.

RTTI Implementation

RTTI (Run-Time Type Identification) is special compiler-generated information which is used to support C++ operators like dynamic_cast<> and typeid(), and also for C++ exceptions. Due to its nature, RTTI is only required (and generated) for polymorphic classes, i.e. classes with virtual functions.

MSVC compiler puts a pointer to the structure called "Complete Object Locator" just before the vftable. The structure is called so because it allows compiler to find the location of the complete object from a specific vftable pointer (since a class can have several of them). COL looks like following:

struct RTTICompleteObjectLocator
{
    DWORD signature; //always zero ?
    DWORD offset;    //offset of this vtable in the complete class
    DWORD cdOffset;  //constructor displacement offset
    struct TypeDescriptor* pTypeDescriptor; //TypeDescriptor of the complete class
    struct RTTIClassHierarchyDescriptor* pClassDescriptor; //describes inheritance hierarchy
};


Class Hierarchy Descriptor describes the inheritance hierarchy of the class. It is shared by all COLs for a class.

struct RTTIClassHierarchyDescriptor
{
    DWORD signature;      //always zero?
    DWORD attributes;     //bit 0 set = multiple inheritance, bit 1 set = virtual inheritance
    DWORD numBaseClasses; //number of classes in pBaseClassArray
    struct RTTIBaseClassArray* pBaseClassArray;
};


Base Class Array describes all base classes together with information which allows compiler to cast the derived class to any of them during execution of the _dynamic_cast_ operator. Each entry (Base Class Descriptor) has the following structure:

struct RTTIBaseClassDescriptor
{
    struct TypeDescriptor* pTypeDescriptor; //type descriptor of the class
    DWORD numContainedBases; //number of nested classes following in the Base Class Array
    struct PMD where;        //pointer-to-member displacement info
    DWORD attributes;        //flags, usually 0
};

struct PMD
{
    int mdisp;  //member displacement
    int pdisp;  //vbtable displacement
    int vdisp;  //displacement inside vbtable
};


The PMD structure describes how a base class is placed inside the complete class. In the case of simple inheritance it is situated at a fixed offset from the start of object, and that value is the _mdisp_ field. If it's a virtual base, an additional offset needs to be fetched from the vbtable. Pseudo-code for adjusting _this_ pointer from derived class to a base class looks like the following:

    //char* pThis; struct PMD pmd;
    pThis+=pmd.mdisp;
    if (pmd.pdisp!=-1)
    {
      char *vbtable = pThis+pmd.pdisp;
      pThis += *(int*)(vbtable+pmd.vdisp);
    }


For example, the RTTI hierarchy for our three classes looks like this:


Extracting Information

1) RTTI
If present, RTTI is a valuable source of information for reversing. From RTTI it's possible to recover class names, inheritance hierarchy, and in some cases parts of the class layout. My RTTI scanner script shows most of that information. (see Appendix I)

2) Static and Global Initializers
Global and static objects need to be initialized before the main program starts. MSVC implements that by generating initializer funclets and putting their addresses in a table, which is processed during CRT startup by the _cinit function. The table usually resides in the beginning of .data section. A typical initializer looks like following:

    _init_gA1:
        mov     ecx, offset _gA1
        call    A::A()
        push    offset _term_gA1
        call    _atexit
        pop     ecx
        retn
    _term_gA1:
        mov     ecx, offset _gA1
        call    A::~A()
        retn


Thus, from this table way we can find out:

  • Global/static objects addresses
  • Their constructors
  • Their destructors

See also MSVC _#pragma_ directive _init_seg_ [5].

3) Unwind Funclets
If any automatic objects are created in a function, VC++ compiler automatically generates exception handling structures which ensure deletion of those objects in case an exception happens. See Part I for a detailed description of C++ exception implementation. A typical unwind funclet destructs an object on the stack:

    unwind_1tobase:  ; state 1 -> -1
        lea     ecx, [ebp+a1]
        jmp     A::~A()


By finding the opposite state change inside the function body or just the first access to the same stack variable, we can also find the constructor:

    
    lea     ecx, [ebp+a1]
    call    A::A()
    mov     [ebp+__$EHRec$.state], 1


For the objects constructed using new() operator, the unwind funclet ensures deletion of allocated memory in case the constructor fails:

    unwind_0tobase: ; state 0 -> -1
        mov     eax, [ebp+pA1]
        push    eax
        call    operator delete(void *)
        pop     ecx
        retn


In the function body:

    ;A* pA1 = new A();
        push    
 
  
        call    operator new(uint)
        add     esp, 4
        mov     [ebp+pA1], eax
        test    eax, eax
        mov     [ebp+__$EHRec$.state], 0; state 0: memory allocated but object is not yet constructed
        jz      short @@new_failed
        mov     ecx, eax
        call    A::A()
        mov     esi, eax
        jmp     short @@constructed_ok
    @@new_failed:
        xor     esi, esi
    @@constructed_ok:
        mov     [esp+14h+__$EHRec$.state], -1
     ;state -1: either object was constructed successfully or memory allocation failed
     ;in both cases further memory management is done by the programmer

 


Another type of unwind funclets is used in constructors and destructors. It ensures destruction of the class members in case of exception. In this case the funclets use the _this_ pointer, which is kept in a stack variable:

    unwind_2to1:
        mov     ecx, [ebp+_this] ; state 2 -> 1
        add     ecx, 4Ch
        jmp     B1::~B1


Here the funclet destructs a class member of type B1 at the offset 4Ch. Thus, from unwind funclets we can find out:

  • Stack variables representing C++ objects or pointers to objects allocated with _operator new_.
  • Their destructors
  • Their constructors
  • in case of new'ed objects, their size


4) Constructors / Destructors Recursion
This rule is simple: constructors call other constructors (of base classes and member variables) and destructors call other destructors. A typical constructor does the following:

  • Call constructors of the base classes.
  • Call constructors of complex class members.
  • Initialize vfptr(s) if the class has virtual functions
  • Execute the constructor body written by the programmer.

Typical destructor works almost in the reverse order:

  • Initialize vfptr if the class has virtual functions
  • Execute the destructor body written by the programmer.
  • Call destructors of complex class members
  • Call destructors of base classes

Another distinctive feature of destructors generated by MSVC is that their _state_ variable is usually initialized with the highest value and then gets decremented with each destructed subobject, which make their identification easier. Be aware that simple constructors/destructors are often inlined by MSVC. That's why you can often see the vftable pointer repeatedly reloaded with different pointers in the same function.

5) Array Construction Destruction
The MSVC compiler uses a helper function to construct and destroy an array of objects. Consider the following code:

    A* pA = new A[n];
    
 
  
    delete [] pA;

 


It is translated into the following pseudocode:

    array = new char(sizeof(A)*n+sizeof(int))
    if (array)
    {
      *(int*)array=n; //store array size in the beginning
      'eh vector constructor iterator'(array+sizeof(int),sizeof(A),count,&A::A,&A::~A);
    }
    pA = array;
    
 
  
    'eh vector destructor iterator'(pA,sizeof(A),count,&A::~A);

 


If A has a vftable, a 'vector deleting destructor' is invoked instead when deleting the array:

    ;pA->'vector deleting destructor'(3);
    mov ecx, pA
    push 3 ; flags: 0x2=deleting an array, 0x1=free the memory
    call A::'vector deleting destructor'


If A's destructor is virtual, it's invoked virtually:

    mov ecx, pA
    push 3
    mov eax, [ecx] ;fetch vtable pointer
    call [eax]     ;call deleting destructor


Consequently, from the vector constructor/destructor iterator calls we can determine:

  • addresses of arrays of objects
  • their constructors
  • their destructors
  • class sizes


6) Deleting Destructors
When class has a virtual destructor, compiler generates a helper function - deleting destructor. Its purpose is to make sure that a proper _operator delete_ gets called when destructing a class. Pseudo-code for a deleting destructor looks like following:

    virtual void * A::'scalar deleting destructor'(uint flags)
    {
      this->~A();
      if (flags&1) A::operator delete(this);
    };


The address of this function is placed into the vftable instead of the destructor's address. This way, if another class overrides the virtual destructor, _operator delete_ of that class will be called. Though in real code _operator delete_ gets overriden quite rarely, so usually you see a call to the default delete(). Sometimes compiler can also generate a vector deleting destructor. Its code looks like this:

    virtual void * A::'vector deleting destructor'(uint flags)
    {
      if (flags&2) //destructing a vector
      {
        array = ((int*)this)-1; //array size is stored just before the this pointer
        count = array[0];
        'eh vector destructor iterator'(this,sizeof(A),count,A::~A);
        if (flags&1) A::operator delete(array);
      }
      else {
        this->~A();
        if (flags&1) A::operator delete(this);
      }
    };


I skipped most of the details on implementation of classes with virtual bases since they complicate things quite a bit and are rather rare in the real world. Please refer to the article by Jan Gray[1]. It's very detailed, if a bit heavy on Hungarian notation. The article [2] describes an example of the virtual inheritance implementation in MSVC. See also some of the MS patents [3] for more details.

 

春秋BC742年世界历史地图矢量文件SHP格式.zip 本资源为《春秋BC742年世界历史地图矢量文件SHP格式》压缩包,文件大小约 26.55 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。 立即下载

相关推荐

春秋BC674年世界历史地图矢量文件SHP格式.zip

本资源为《春秋BC674年世界历史地图矢量文件SHP格式》压缩包,文件大小约 26.49 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

逆向分析 C++继承内存分布(带虚函数) 及动态绑定实现

昨晚断网,于是乎闲来无事,想彻底研究一下C++的继承关系下的内存结构(带虚函数的),开IDA分析,经过不断的分析,发现C++的内存结构很是复杂,很多东西都是我以前完全不知道的,以下所有内容均是个人午夜至凌晨的原创逆向分析,有很多有用的细节,有用的取之,不用的勿拍砖 C++继

kalrey的专栏 391

战国BC301年世界历史地图矢量文件SHP格式.zip

本资源为《战国BC301年世界历史地图矢量文件SHP格式》压缩包,文件大小约 2.28 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

Reversing Microsoft Visual C++ Part II: Classes, Methods and RTTI

原文链接http://www.openrce.org/articles/full_view/23 Abstract Microsoft Visual C++ is the most widely used compiler for Win32 so it is important for the Win32 reverser to be familiar with its inne

计算机的艺术 2584

ComfyUI/FLUX.3 Image Klein 同款跑鞋十二图

文件编号:c0240 输入一张女性试穿照,生成同款跑鞋的多角度商品图。实测输出十二张单图和一张总览,保留深绿麂皮、米白网面与浅棕外底。 解压后将 c0240.json 导入 RunningHub 工作台。若在本地 ComfyUI 使用,请按已安装的节点和模型版本调整工作流。

YOLO26算法细丝电影碎片识别+训练好的模型+597张数据集+pyqt可视化界面.zip

附训练好的 YOLO 权重与 PyQt 可视化检测界面,页面底部含可视化效果预览,毕设/课设开箱即用。 【数据集概况】 · 检测类别(中文):[()] 【训练曲线与评估图】 【模型训练配置】 参数 | 值 模型 | yolo26n 训练轮数 | 100 epochs 输入尺寸 | 640x640 批次大小 | 24 优化器 | auto 初始学习率 | 0.01 训练设备 【关键指标汇总】 训练了 43 个 epoch,最终轮指标: 指标 | 数值 mAP50 | **0.4882** mAP50-95 | 0.3450 Precision | 0.5763 Recall | 0.5492 train/box_loss | 1.0853 train/cls_loss | 1.1035 val/box_loss | 1.3885 val/cls_loss | 1.8050 【训练过程分析】 自从决定使用 YOLO26 模型进行训练以来,就一直在关注着这个项目的进展。从训练初期,模型在 loss 逐步下降的过程中,我感受到了一种逐步适应的过程。loss 值从初始阶段的较高值开始下降,尤其是在前 20 轮内,变化曲线比较平缓,仿佛一个缓慢的爬坡过程。从第 20 轮开始,loss 下降速率加快,特别是在 25 轮左右,loss 值急剧下降,这表明模型开始有效学习到一些关键的信息。然而,从第 30 轮开始,loss 的变化变得不那么明显,这似乎进入了平台期,说明模型收敛到了一个相对稳定的训练状态。整体来看,这个平台期一直持续到第 43 轮,这个阶段的曲线让我觉得有些枯燥,但也是对模型能力的一种考验。从第 43 轮开始,模型的 loss 值保持在一个较低且稳定的水平,这表明模型没有表现出明显的过拟合迹象。整个训练过程... 使用场景:毕业设计、课程设计、深度学习入门、工业场景落地验证。

eversing Microsoft Visual C++ Part II: Classes, Methods and RTTI

Reversing Microsoft Visual C++ Part II: Classes, Methods and RTTIThursday, September 21 2006 15:56.06 CDTAuthor:  igorsk  # Views: 25842  Printer Friendly .AbstractMicrosoft Visual C++ i

herx1的专栏 1604

三层嵌套区域分割的三模型概率平均集成演示:Dice 与 HD95 分亚区评估(NumPy 实现)

三层嵌套区域分割的三模型概率平均集成演示:对三个模型输出做概率平均集成,按亚区评估 Dice 与 HD95。NumPy 实现,适用于医学图像分割与深度学习演示学习。

四语言反射计数原理与工程实践:Java/Python/C++/JS对比

反射计数是衡量编程语言运行时元信息访问能力的核心指标,本质是对类型、方法、字段等可反射对象的动态统计能力。其底层依赖于各语言的类型系统设计(如JVM的RTTS、CPython的对象字典、C++20的编译期反射、V8的隐藏类机制),直接影响AOP代理、序列化框架、测试覆盖率分析等通用工具库的性能天花板。在微服务启动校验、动态组件注册、元数据协议设计等典型场景中,不同语言的计数精度、边界定义与性能表现差异显著——Java受限于类加载机制,Python需规避__slots__陷阱,C++依赖宏注册博弈,JS则受P

weixin_34411563的博客 362

stm32-spi-tutorial.rar

SPI(Serial Peripheral Interface)是 STM32 开发中最常用的高速同步串行通信协议之一。它全双工、主从架构、速率高,被广泛用于驱动 Flash、OLED、SD 卡、传感器、显示屏等外设。 但 SPI 也是最容易「踩坑」的协议之一——CPOL 和 CPHA 四个组合决定四种工作模式,主从设备模式不匹配时,设备能通电、能通信,但数据全是错的,排查起来一头雾水。 本教程用可调参数的交互时序图帮你彻底搞懂四种模式,再用 W25Q64 Flash 这个真实外设走一遍 STM32 HAL 库的完整开发流程。

欠驱动水面船舶的自适应神经(NN)控制圆形+直线轨迹跟踪控制研究(Matlab代码实现)

内容概要:本文针对欠驱动水面船舶在圆形和直线轨迹下的高精度跟踪控制问题,提出了一种基于自适应神经网络(Adaptive Neural Network, NN)的非线性控制方法。该方法有效应对船舶在欠驱动条件下存在的强耦合、非线性动力学特性以及外界环境干扰(如风浪流)等挑战。通过构建适当的神经网络逼近系统未知非线性项,并结合Lyapunov稳定性理论设计自适应律,确保闭环系统的全局一致最终有界性(UUB)。文中详细阐述了控制器结构设计、神经网络权重在线更新机制、控制律推导过程,并利用Matlab/Simulink平台对直线与圆形期望轨迹进行了仿真验证,结果表明所提方法具有良好的跟踪精度、动态响应性能与抗干扰能力,适用于复杂海洋环境下无人船的自主航行控制任务。; 适合人群:具备自动控制理论、船舶与海洋工程或机器人控制等相关专业背景,熟悉非线性系统分析、自适应控制原理,并掌握Matlab仿真工具的研究生、科研人员及从事无人船控制系统开发的工程技术人员。; 使用场景及目标:①研究欠驱动船舶在复杂轨迹下的自主跟踪控制策略;②掌握自适应神经网络在不确定非线性系统中的建模与补偿方法;③复现并拓展高水平期刊论文中的智能控制算法;④为无人水面艇(USV)的实际控制系统开发提供理论支持与仿真验证基础。; 阅读建议:建议读者结合文中的数学推导与Matlab代码实现同步学习,重点理解Lyapunov函数的构造思路、神经网络逼近机制及其参数自适应调整规律,有条件者可进一步将算法迁移至硬件在环(HIL)平台或实船系统进行测试,并与其他先进控制方法(如滑模控制、模型预测控制)开展性能对比分析。

Java基础12——深入理解Class类和Object类

深入理解Class类和Object类 一、所有类的类型信息的记录员——Class类 先来简单了解一下Java虚拟机中类的加载过程: 「加载」阶段是「类加载」过程的第一个阶段,虚拟机需要完成以下三件事情: 1. 通过一个类的全限定名来获取定义此类的二进制字节流(.class文件即保存 着类的二进制数据)。 2. 将该字节流所代表的静态存储结构转化为方法区的运行时数据结构。 3. 在Java堆中生成一...

weixin_43192732的博客 471

《Ventoy 制作系统安装 U 盘的具体步骤》

然后您可以在电脑的磁盘管理中对 U 盘进行快速格式化,选择 FAT32 或 NTFS 文件系统。至此,Ventoy 系统安装 U 盘就制作完成了。您可以在需要安装系统的电脑上,从 U 盘启动,然后选择相应的系统镜像进行安装。安装完成后,将您需要的操作系统镜像文件(如 Windows、Linux 等的 ISO 格式镜像)复制到 U 盘的根目录。在安装程序中,选择您插入的 U 盘设备,确保选择正确,以免误操作。2. 确认选择的 U 盘盘符正确,防止误操作导致其他磁盘数据丢失。点击“安装”按钮,等待安装完成。

jiyiwangluokeji的博客 2686

深入解析ATL服务类:COM组件开发的核心架构与实战应用

组件对象模型(COM)是Windows平台上实现软件组件化与跨语言互操作的核心技术框架。其核心原理在于通过二进制接口标准定义组件契约,使得不同语言编写的模块能够相互通信。这一技术为Windows生态带来了巨大的工程价值,它奠定了ActiveX控件、OLE自动化及众多系统服务的基础,实现了代码复用与系统集成的标准化。在实际应用场景中,COM技术广泛用于构建插件系统、进程间通信模块以及遗留系统的核心组件。本文聚焦于ATL(活动模板库)服务类,它是高效实现COM组件的关键工具,通过精妙的模板技术封装了IUnkno

weixin_30675247的博客 455

博途WinCC多语言项目配置指南

在博途(TIA Portal)中为WinCC项目配置多语言功能,需通过系统化步骤实现界面文本的动态切换。

dhaimo的博客 2490

别再手动测接口了!用Pytest+Requests+Allure搭建你的第一个自动化框架(附完整源码)

本文详细介绍了如何使用Pytest+Requests+Allure搭建Python接口自动化测试框架,涵盖环境准备、核心组件封装、测试用例设计、报告生成及CI/CD集成等关键步骤。通过实战案例和完整源码,帮助开发者快速构建高效的接口自动化测试解决方案,提升测试效率和质量。

weixin_42546508的博客 326

DataSnap三层架构实战:从核心原理到Delphi分布式应用开发

三层架构是分布式系统设计的经典模式,通过将应用逻辑分解为表示层、业务逻辑层和数据访问层,实现了关注点分离与职责解耦。其核心原理在于通过中间件协调各层通信,将业务规则与数据访问集中管理,从而提升系统的可维护性、可扩展性与安全性。这一架构的技术价值在于能够有效支持多用户并发访问,简化客户端部署,并保障业务逻辑的一致性。在应用场景上,它尤其适合需要长期维护、业务复杂的企业级桌面应用,例如进销存、ERP等系统。本文以Delphi生态中的DataSnap框架为例,深入探讨如何利用其TCP、HTTP及REST通信模式构

congli3478的博客 481

【数据集】中国多属性建筑数据集CMAB

【数据集】中国多属性建筑数据集CMAB

WW、forever的博客 4541

C++ Primer Plus 第六版 编程练习题及详细答案

C++编程练习摘要 本文档包含了一系列C++编程练习的解决方案,涵盖了基础语法、函数、类、模板等核心概念。练习分为多个章节,每章包含若干题目。 主要内容 基础练习:变量声明、输入输出、简单计算等基础语法练习 函数与结构:函数定义、参数传递、结构体使用 面向对象:类定义、继承、多态、运算符重载 模板与STL:模板函数、模板类、标准模板库应用 文件I/O:文件读写操作 异常处理:异常类设计与使用 典型示例 简单I/O:显示姓名地址、单位换算 函数应用:温度转换、字符串处理 类设计:复数类、链表类、银行模拟类 S

misterxize的博客 407

第10章 shellcode实战:18 神级开源shellcode工具:donut

Donut是一款shellcode生成器,可将C/C++、C#生成的PE文件转换为shellcode文件,同时支持JS、XSL、VBS脚本转换为shellcode。以下“原生”EXE/DLL指非托管PE文件(包括并不限于C/C++、delphie等编写生成的可执行文件),可以直接由系统加载运行,区别于.Net生成的托管文件。被处理exe/dll为32位程序,则需要用32为的shellcode加载器启用,exe/dll为64位的就用64位shellcode加载器启用。

李小咖·网安技术库 2805

10、智慧变电站 - 加载vue大屏元素(整体效果)

这一篇文章非常简单,但是也非常出效果阅读前面几篇文章,都可以看到有顶部、左侧、右侧的面板,主要我不会录gif图片,大屏元素面板还有一些动态加载的效果。 vue的transition标签 Vue 提供了 transition 的封装组件,可以给任何元素和组件添加进入/离开过渡;在进入/离开的过渡中,会有 6 个 class 切换:v-enter 、v-enter-active 、v-enter-to 、v-leave 、v-leave-active 、v-leave-to。我们正好使用这个特性来达到面板进入

github_39988036的博客 1043
上一篇: 在VS中查看一个或多个类内存布局的命令
下一篇: 怎么就加不到个真正的技术QQ群呢
hooked
博客等级 码龄18年 3粉丝 6原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值