Select to view content in your preferred language

Success/Error returned from ESRIRegAsm

537
3
10-25-2010 02:52 PM
by Anonymous User
Not applicable
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!
0 Kudos
3 Replies
StefanOffermann
Deactivated User
Did you ever got a solution for your problem?
0 Kudos
RichardWatson
Deactivated User
I believe that the way that ESRIRegAsm works is to call the COM registration logic in your component.  If Dephi does this and you modified the logic to register the component categories then it should work.

If, for whatever reason, you can't get this to work then you can simply make up the ecfg files by hand.  This is exactly what we do for VB6 DLLs because they don't do category registration.

The ecfg files are simply renamed zip files.
0 Kudos
by Anonymous User
Not applicable
Yes, I did.  I documented my findings in Word and put them out on ArcGIS.com for everyone to download.  Do a search for Delphi at that ArcGIS.com and you'll see something about ArcObjects and Delphi XE2.  Download that, open it, and you'll find that RegAsm is part of that document, even though the document is, at large, unfinished.
0 Kudos