Who can use customer buttom? I create .dll with one class and regist it to POS, I set custom buttom in Store Operation with Style Com Object (session object) but I cannot use it. It popup "Attempt to execute com object "mydll.myclass" failed, Colud not create object". I don't know what is my error. Please recommadation for me. Thanks you for your help
Who can use custom buttom?
May 12, 2006
2 Replies
That could be caused by several different issues:
1) Your Hook is not correctly entered in the windows registry 2) there is a problem in the signature of your Process() function Public Function Process(session as Object) as Boolean Public Function Process(id as Long) as Boolean Public Function Process() as Boolean 3) an error is occurring inside your function and you are not catching it.First thing to do is to create a trivial function that just displays a message box - that will let you know if you have the function signature and the registry entries correct.
If you can get a message box to display without an error, then you need to go back and look at your function - and include error handling. You can post your function here and someone may be able to see the problem.
Glenn Adams Tiber Creek C> Who can use customer buttom? I create .dll with one class and regist it to
this is code in my class, I give name is "Surfpro" and I compile to "Surfpro.dll" I use custom button with style Com Object(Session Object) and using command "Surfpro.Surfpro". It's not working. I don't know this feature, haveing someone use this feature successfully. Please helpme for this problem.
Public Function Process(Session As Object) As Boolean
' Session is a QSRules.Session Object
If Session.Transaction.Customer.Loaded Then
If Session.Transaction.Customer.TotalSales > 500 Then MsgBox "Attention! Customers who have purchased over $500 receive 10% off all accessories.", vbOKOnly Or vbInformation, "Surf Pro" End If
End If
Process = True
End Function
"Glenn Adams [MVP - Retail Mgmt]" wrote:
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required