com session problem

i keep getting problems when trying to excute a com session object i have followed the customization guide word for word but still get the same problem sya it can not excute it at the POS. i have called it by the dll name then the class name in manager for example dllname.classname and it does not work.

i'm only using the example code given in the guide i'm doing this in VB6.

Reply to
Tom Platinum systems ltd
Loading thread data ...

Have you registered the DLL using regsvr32?

Rob

Reply to
Rob

Hi rob i have managed to do that now and thanks for your help

the problem i have now is that i want to create a customer lookup i have made a dll that has a form i want to be able to select the customer and then send that to the process function to add the customer but at the moment i just get runtime error 91

i'm using this piece of code to call the setcustomer function

Dim MySessi> Have you registered the DLL using regsvr32?

Reply to
Tom Platinum systems ltd

the Session class needs to be passes into the process() function either by a hook function or by a custom pos button. If you have a sub procedure or function called from within the process()function, you need to pass the session as a parameter into your sub...

public function process(session as object) as boolean

'do some stuff msgbox session.cashier.name 'call sub proc to do more stuff mySub session

process = true end function

private sub mySub(mySession as object)

msgbox mySession.cashier.name

end sub

Glenn Adams Tiber Creek C> Hi rob i have managed to do that now and thanks for your help

Reply to
Glenn Adams [MVP - Retail Mgmt]

Reply to
Tom Platinum systems ltd

Hi Glenn and Rob thank you both for your help i have just used your help and managed to get a my interface to set the customer but it does it a bit wrong i select the customer and the next time i load the dll it changes the customer on the POS

Please Help

"Tom Plat> Ok thats great, I'm a bit of novice with this how could i make it so it run

Reply to
Tom Platinum systems ltd

After unloading your form send these two commands. SendKeys ("{DELETE}") SendKeys ("{DOWN}")

That will effectively refresh the transaction screen and your customer that you assigned will then show up.

Rob

Reply to
Rob

Reply to
Tom Platinum systems ltd

What service are you using for postal code lookups, if I may ask?

Rob

Reply to
Rob

Hi rob its a postcode service called zapcode made capscan its just a database with some api's that you install on the machine.

Reply to
Tom Platinum systems ltd

I see they are a UK based company. Do you know if this works only in the UK or elsewhere, say Canada?

Rob

Reply to
Rob

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.