Atempt to process COM object failed

Mar 21, 2007 3 Replies

Dear All, I am trying to call dll from receipt hook. I registered the dll as follows: parameter = 4 hooktype=1 objectname=Mydll.myclass



When i tried to print the receipt it give me the following error: Atempt to process COM object 'Mydll.myclass' failed. An unknown error ocurred.



The same dll is working when invoking it from custom POS buttons.



Thanks in advance,


The PrintReceipt Hook passes a session object to your Process() function. You should be calling with parameter=1.

It's possible that you have an unhandled error in the function itself. The return you see in RMS is the very unhelpful 'failed to process' message you are seeing here.

What language/version are you using to build your component (VB6, .Net

1.1, .Net 2.0, vb.Net, c#)?

If you want to post your code, or at least the function definition, someone may be able to spot your trouble.

Glenn Adams Tiber Creek C> Dear All,

Dear Adams, I am using VB.Net. I am just testing with a message box with the message "Hi Welcome" . Regards,

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required