I am completely new to POS for .Net, so apologies for the newbie question. Working through the Microsoft examples, I believe that I have built my first (dummy) service object DLL.
I now need to install it, I believe, but do not know how.
I found a web link that suggested copying the DLL to "C\:Program Files\...\Control Assemblies\". I found the "Control Assembllies" folder, but under "C:\Program Files (x86)\..." and have copied the DLL to there.
However, using "posdm LISTSOS" from the command line, I see all the service objects in the two example DLLs, butno reference to my own.
Would anybody have a good idea regarding what I have failed to do or done incorrectly?
Thanks in advance, AndyWednesday, February 08, 2012 5:50 PM
Place the DLL in the C:\Program Files (x86)\Common Files\microsoft shared\Point Of Service\Control Assemblies. If the SO doesn't have the PnP ID for the device built in, you will have to create an XML file referencing your SO by name, and place it in C:\Program Files (x86)\Common Files\microsoft shared\Point Of Service\Control Configurations.
FYI - there is a book on POS for .NET that covers some of this: http://www.annabooks.com/Book_PGPOS.html. there is also a GUI utility to work with service objects: http://www.seanliming.com/POSforNET.html
www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NETWednesday, February 08, 2012 6:06 PMAnswerer
Thanks for the quick response, Sean
I think that I have the PnP ID in:
DeviceType.Msr, // Magnetic Stripe Reader (for now)
"Advanced Sample MSR Object",
These match the device that I plugged in.
Thanks for the links to the books. Slight problem is that as I am in the UK, I can'y buy the ebook. Amazon et al will not sell them outside the US. :(
Wednesday, February 08, 2012 6:10 PM
- Edited by AndyJGraham Wednesday, February 08, 2012 6:20 PM
The @ sign in the hardware ID doesn't look correct. Remove them and see what happens.
I have had several orders from the UK for the ebook. There should not be block as I see the settings for the book to sell to the UK. If you have Kindle for PC, you can purchase books online, and they can be viewed on any kindle reader.
www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NETThursday, February 09, 2012 1:36 AMAnswerer
Having worked through the "Avery scale" service object exercise in Sean's book, I find that I cannot get the project to clean compile. (I am writing in C# and using Visual Studio 2008 if that make a difference.)
I get four error messages, each very similar, saying that the DataEvent, ErrorEvent, DirectIOEvent and StatusUpdateEvent are never used.
Sorry if this should be obvious, but any ideas what I have done wrong?
Thanks in advance,
Friday, February 17, 2012 5:41 PM
- Edited by AndyJGraham Friday, February 17, 2012 5:43 PM
2008 might make a difference, and I don't have it installed anywhere. you could put a dummy call that rerturn nothing in the functions.
www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NETFriday, February 17, 2012 11:32 PMAnswerer