Sdílet prostřednictvím


Adding the Program Object

The text interpreter must create a program node object and register it with the process debug manager (PDM). All program node objects ultimately derive from the IDebugProgramNode2 interface, and all program objects derive from the IDebugProgram2 interface.

In TextInterpreter, the program object and the program node object are one and the same. That is, the object that implements IDebugProgramNode2 also implements IDebugProgram2. This is a typical approach, but if class size is an issue, implement IDebugProgramNode2 in its own class object.

To add the program object to the text interpreter

  1. Inserting the Program Object in the project.

  2. Implementing IDebugProgram2 and IDebugThread2 interfaces.

  3. Instantiating the Program Object.

See Also

Tasks

Tutorial: Building a Debug Engine Using ATL COM