Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AlohaInterceptActivity C# implementation

Status
Not open for further replies.

airbag0

Programmer
Jan 21, 2014
3
US
I'm new to COM programming and trying to implement the AlohaInterceptActivity COM interface in order to be notified when a payment is deleted. Unfortunately I do not have access to the SDK at this stage, so I would be grateful for any pointers.

I am inheriting IInterceptAlohaActivity9, which has a guid defined, but I am unsure of how to 'register' my program so that the inherited methods will be called by actions within the terminal.

Could anyone provide some further direction, or even related links?

Kind Regards,
 
You could try using some of the many reflection based programs out there to open up the source of the interface. Assuming they aren't using any obfuscation, it should make the task of integrating much easier, especially if you don't have the documentation to go with it.
 
Hi Moregelen, thanks for your reply and suggestions.

I've looked at the AlohaInterceptActivity.DLL in a decompiler and actually have the AlohaInterceptActivityClass in my C# project, complete with Guid, so correct me if I'm wrong (please) but I believe I just need to understand how these methods get called from the POS, and how I can then have them execute my methods.

Here's a pastebin (set to expire in a week) with an excerpt of the class and the method I believe should be called by the POS:
Do I merely override this method, compile the DLL and load it in the registry?

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top