I still develop my custom Arc tools using Delphi 2007. Recent versions of Delphi cannot seem to handle COM so well. I have a custom preview pane for ArcCatalog so that the user can preview the contents of text files, using their settings from Notepad. Although I can successfully use categories.exe to register the object in the Gx Preview category, I can't see where the change is being made in the registry. I read that the registry is not used for categories, so what is categories.exe doing?
When I *un*register the class using categories.exe, and instead use ESRIRegAsm with the /e switch, here is what I get:
**********************************
ESRIRegAsm::Register
Command line: "C:\Users\<username>\Documents\RAD Studio\5.0\Projects\GxTextPreview\GxTextPreview.dll" /p:Desktop /e
Registry Capture On.
Registering native library...
Registry Capture Off.
Processing Registry Entries...
No categories to register.
Operation Succeeded
**********************************
Press Enter to continue...
The class I made does not become a preview tab and no additional file is generated in the CATID folder or the folder of the dll. Notice the "No categories to register" error, yet the "Operation succeeded" message.
How do I make my custom object window a successful preview tab for text files? It's worked before!
Let me know if you need any additional info to help solve my problem. Thanks, community!