| The Bugs in SHLOBJ.PAS and How to Fix Them | D2 C1 |
|
NOTE: This applies only to Delphi 2 and C++Builder 1. Delphi 3 and C++Builder 3 and up have fixed all of these bugs. There are currently available two units that provide access to the Win95/NT 4.0 Shell Namesapce API. Unfortunately, both of them have errors in several of the function declarations. To use this component you will have to correct these errors. You can do this in one of three ways.
I prefer and suggest option 3. Pat will not be supporting ShellObj now that Borland is officially distributing ShlObj, and I don't like modifing RTL code directly. It makes applying patches a royal pain because I always forget to copy the original back over it before patching. Rename your modified copy to MyShlObj.pas (don't forget the UNIT clause name), unless you directly modified the RTL source. If you did that, make sure you recompile it and update the \Delphi\Lib\ShlObj.dcu file and change the USES clause in SystemTreeView.pas from MyShlObj to ShlObj. |
|
|
|