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
Thanks Scott for your responses
i can programming in vb.net too , but i haven'n any sample project ...
really i dont know steps of creating add-in correctly
Is it Possible that Send a simple add-in that you wrote in .net ?
if yes , my esmail address is __"esmail.abrahimi@gmail.com"___
Thanks again
best
I haven't done VB6 in a long long time, but maybe since it's on a 64 bit machine it needs to go in a different folder. see this link: support.microsoft.com/.../249873. Might need to go in %systemroot%\SysWoW64 folder
I use .NET and compile for COM Interop and my dll's go right alongside of RMS. Try moving it to the 64 bit folder. It appears your hook is being called, but it just can't find your dll.
Hi SCOTT
NO , I do Only Copy it to System32 Folder And register it ...
is it necessary ?
do you have myrms.dll in the same folder as RMS?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,297 Most Valuable Professional
nmaenpaa 101,156