hi
i want to create Com Component with vb6 for pos that accure when receipt Printing
(PrintReceipt Hook)
i want set custom string for transaction.comment and show it in receipt template
i do below works :
0- placed transaction.comment property in receipt template in import template in pos manager and save it
---------------------------------------------------------------------------------------------
1- create vb6 com component with code :
Public Function Process(ByVal session As Object) As Boolean
Transaction.Comment = "Sample Comment"
Process = True
End Function
Note : Project Name is 'myrms' And class name is 'myclass' .
---------------------------------------------------------------------------------------------
2- copy myrms.dll to system32 and register it by below command lIne statement :
regsvr32 c:\windows\system32\myrms.dll
---------------------------------------------------------------------------------------------
3- change registery :
3-1
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Retail Management System\Store Operations\Hooks
count -->1
3-2
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Retail Management System\Store Operations\Hooks\000
(Default) --> favorite string
Caption --> favorite string
Description --> favorite string
HookType --> 1
ObjectName --> myrms.myclass
Parameter --> 1
---------------------------------------------------------------------------------------------
4-and finally when i want print the recipt following error show :
Attempt to execute COM object 'myrms.myclass' failed. Could not create object
---------------------------------------------------------------------------------------------
please help me for this problem
thanks a lot
*This post is locked for comments