Need Help on COM AddIn registry entries

Hi,

I am having 2 COM AddIns for the TenderEnd hook... Both of them works well indivudually. But when I have both of them together, the AddIn that was added first is getting invoked and the second AddIns is not invoked. When I exit the POS and the registry entry of the second AddIn vanishes... Both the DLLs are registered... The registry entry is as follows...

Hook Number: 000 Caption: AddInCaption1 Description: AddInDesc1 HookType: 15 ObjectName: AddIn1.class1 Parameter: 1

Hook Number: 001 Caption: AddInCaption2 Description: AddInDesc2 HookType: 15 ObjectName: AddIn2.class2 Parameter: 1

What could be wrong? What is that I have to do to get both the AddIns working?? Thank you very much....

Srikanth...

Reply to
Srikanth
Loading thread data ...

Hi,

I am having 2 COM AddIns for the TenderEnd hook... Both of them works well indivudually. But when I have both of them together, the AddIn that was added first is getting invoked and the second AddIns is not invoked. When I exit the POS and the registry entry of the second AddIn vanishes... Both the DLLs are registered... The registry entry is as follows...

Hook Number: 000 Caption: AddInCaption1 Description: AddInDesc1 HookType: 15 ObjectName: AddIn1.class1 Parameter: 1

Hook Number: 001 Caption: AddInCaption2 Description: AddInDesc2 HookType: 15 ObjectName: AddIn2.class2 Parameter: 1

What could be wrong? What is that I have to do to get both the AddIns working?? Thank you very much....

Srikanth...

Reply to
Srikanth

Hi,

I have 2 COM AddIns for the "TenderEnd" Hook. But when I run the POS only the AddIn that is added first into the registry is getting invoked, and when I check the registry again after exiting the POS, the second registry entry vanishes... How do I have 2 AddIns for the TenderEnd Hook... I have registered both the AddIns (the DLLs) and they both work perfectly invidually... Here are the registry entries that I added....

Hook Number: 000 Caption: Hook1 Description: Hook1 HookType: 15 ObjectName: AddIn1.class1 Parameter: 1

Hook Number: 001 Caption: Hook2 Description: Hook2 HookType: 15 ObjectName: AddIn2.class2 Paramter: 1

Thank you,

--Srikanth

Reply to
Srikanth

Hi Glenn,

I didn't check your reply at first, but I finally figured out that "count" is what I have to increment and I came to the user groups to update the post and I saw your reply... Stunned at first, you are an MVP, thank you very much... You've been helping me since I started my project on MS RMS Integration... Thank you once again.... Hats off to your talent... I am always your fan...

--Srikanth

Glenn Adams [MVP - Retail Mgmt] wrote:

Reply to
Srikanth

Did you set the Hook Count to 2? If you have 2 hooks defined, but the hook count is 1, the first will be loaded and the second will be removed from the registry...

I've never tried adding 2 hooks for the same event, so Hook Count may not be your problem, but it sure sounds like it...

Reply to
Glenn Adams [MVP - Retail Mgmt]

Hi Srikanth,

You have to merge the code together into one Dll, in which you can check the condition to fulfill your two requirements and use on hook.

CP.D> Hi,

Reply to
C.P.Dinesh

Hi Dinesh,

I never thought anyone would ever open this topic again that I started almost 2 months ago. I was going through my previous postings and I accidentally saw this one.

And the reply for your answer

No, we don't have to merge them. We can have 2 hooks for the same event. But as glenn said, we need to be a little careful with the count of our hooks.

Actually I would have merged the code if I were to develop both the hooks, but I faced this problem bcos the other hook-in was not actually mine. But the hooks will be invoked sequentially depending on their hook-number (i.e 001 first, 002 next and so on)... i am not very sure about this, but I think this is the way it invokes the hook-ins.

Reply to
Srikanth

Hi Srikanth, We can have multiple hook sequeentially depending on hook number. I have done some of these customisations. Did you resolved your issue..?

snipped-for-privacy@gmail.com

"Srikanth" wrote:

Reply to
C.P.Dinesh

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.