Could not create object

Dec 25, 2008 0 Replies

Hi ! Is there anyone to show me how to create simple customization using COM and VB. net



Hi am trying to make sample dll for custom POS button based on the example in the customization guide using VB.net



Basically here is the code (from the customization guide)



Public Function Process(mySession As Object) As Boolean If MsgBox("The current cashier is " & mySession.Cashier.Name & ".") Then Process = True Else Process = False End If End Function



I created a class called NewClass with only the above function VB project name (class library) is Test, output is Test.dll



So i followed the instruction, Give it a strong name, modify the assemblyinfo, recompile Move it AddIns directory, usse regasm, gacutil



Then i set it to be invoked from custom POS button as COM(Session) the command was Test.NewClass



At the POS i get Could not create object error



Can anyone show me what may be wrong ?



Thank you, Regards, Joie



Merry Christmas & Happy New Year !!


Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required