I have created a simple COM Component Add-in using MS Visual Studio 2005. I created a Custom POS Button in SO Manager. It works without any errors when the code is compiled using MS VS2005 (using .NET 2.0) and the MS RMS V2 running on the same machine. However the same doesn't work when deployed on customer's machine (when the dll is copied to the AddIns folder of MS RMS). I have tried to register the component using regsvr32.exe but I get an error about the entry point.
Can somebody please let me know the steps that are required to deploy such dlls?
Thanks for you help Code: ================= _ Public Class InvokeDll
#Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "323e6dcb-bc7c-43b7-986c-461b34b7e7f8" Public Const InterfaceId As String "ce429c01-c1f8-4aa1-953f-d12184817d86" Public Const EventsId As String = "ae4646a8-ff29-44a7-8442-78a9fa08d60d" #End Region
' A creatable COM class must have a Public Sub New() ' with no parameters, otherwise, the class will not be ' registered in the COM registry and cannot be created ' via CreateObject. Public Sub New() MyBase.New() End Sub
Public Function Process(ByVal mySession As Object) As Boolean
If MsgBox("The current cashier is " & mySession.Cashier.Name & ".", MsgBoxStyle.OkOnly, _ "Test Message") = MsgBoxResult.Ok Then Process = True Else Process = False End If End Function End Class =========================