Atempt to process COM object failed

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,

Reply to
Ibrahim Zubair
Loading thread data ...

Reply to
Richard

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,

Reply to
Glenn Adams [MVP - Retail Mgmt

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

Reply to
Ibrahim Zubair

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.