|
| DEBUGGING SHELL EXTENSIONS USING DELPHI |  
|
|---|
| Details of Shell extensions debugging under Windows 9x/W2K/XP | Product: Delphi all versions | Category: Shell API | Skill Level:
 | Scoring:  | Last Update: 07/25/2002 | Search Keys: delphi delphi3000 article borland vcl code-snippet delphi shell extension debug xp windows explorer breakpoint debugging | Times Scored: 7 | Visits: 4867 | Uploader: Alex Tischenko Company: Shell+ Development Group | Reference: http://www.shellplus.com/debugging-shellextensions-using-delphi.html | | | Question/Problem/Abstract:
This article describes the details of debugging Shell extensions written with Borland Delphi or C++ Builder. | Answer:
Introduction
Nowadays the integrated programming environments - Borland Delphi and Borland C++ Builder represent rather convenient means for developing Windows Shell extensions (further on: Shell extensions).
In contrast to the Microsoft development environment, where all of the Shell extension code is embedded in the template, generated with the help of , Delphi and C++ Builder provides you with the opportunity to use similar Template Wizards, it also provides a faster and simple visual approach for Shell extensions developing, for example the components package (www.shellplus.com).
In any case the important question is the debugging of your Shell extensions. This article was written to assist the programmers, who use Borland Delphi (C++ Builder) for developing Shell extensions. It will be equally useful to both those who use the visual approach, and those, who write Shell extensions "from scratch".
As for any other DLL debugging you should specify the Host Application for your Shell extension. Your Shell extension will be loaded into the address space of this application. In our case such an application is represented by Windows Explorer. Go to the menu Run | Parameters..., press the Browse button and choose the Explorer.exe file from the Windows directory. Do not hasten to start debugging though, there are a lot of significant nuances ahead.
You should include all the necessary debugging information into your project. For this purpose open the window (using the menu Project | Options...), proceed to the tab and in the group check the item. It should activate generation the special data for remote debugging, which are also necessary for debugging COM-applications. When you are done with the debugging of your Shell extension do not forget to switch this option off, as it considerably increases the size of the module and creates an even greater-sized file with the extension *.rsm, which stores all the symbols for the remote debugging. For the convenience of debugging it's also recommended to check
|
|
|
| |
Sign up to consume product discounts for Bronze memberships !
|
|
| |
Community Ad of S. Kucherov |
|
| |
|
|
|