Powerbasic Museum 2020-B

Webmaster: José Roca (PBWIN 10+/PBCC 6+) (SDK Forum) => COM Programming => Topic started by: Paul Breen on September 23, 2015, 05:28:14 AM

Title: how to register tlb when found in the application exe
Post by: Paul Breen on September 23, 2015, 05:28:14 AM
Hello, I am trying to use a dispatch interface using the tlb from a program called regexbuddy.
The docs say the tlb is registered automatically, but I have done this twice, getting the message "installed successfully". However, the Jose Roca tlb browser says the tlb is not registered. The docs also say the tlb is inside the regexbuddy4 executable. I cannot get regsvr32 to register an exe file, it likes dll's. I used the tlb browser to find the tlb inside the executable, so it is there, but now I do not know how to register the
tlb manually. There is no dll in the installation folder to confuse the issue.

thanks,
Paul Breen
Title: Re: how to register tlb when found in the application exe
Post by: José Roca on September 23, 2015, 09:16:03 PM
According to MSDN:

Quote
To register the component, type the following command:
<path>\<mycomponent> /regserver
where <path> is the path to the component, and <mycomponent> is the name of your component.

To unregister the component, type the following command:
<path>\<mycomponent> /unregserver
where <path> is the path to the component, and <mycomponent> is the name of your component.

You can type these commands in a command window, or you can click Run from the Windows Start menu and type the commands.

https://support.microsoft.com/en-us/kb/297279
Title: Re: how to register tlb when found in the application exe
Post by: Paul Breen on September 24, 2015, 01:05:47 AM
Thanks for the help.
Well, I must have another problem.
I opened a console window (administrator level)in the directory of the exe.
I typed RegexBuddy.exe /regserver
No errors, just return of control.
The RegexBuddy tlb still does not show up on the left side (grid) of the tlb tool. I tried reload, etc.
Title: Re: how to register tlb when found in the application exe
Post by: José Roca on September 24, 2015, 04:39:25 AM
It should appear as RegexBuddy.exe.

Check the registry entries to see if it has been properly registered.