Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a Windows Runtime ("Metro") application that needs to read from a USB magnetic stripe reader. As per everything I've read, I've tried to use MagneticStripeReader.GetDefaultAsync() to find my reader. This always returns a null. Then, I tried using MagneticStripeReader.FromIdAsync(deviceId), where the deviceId is the value I've obtained from Device Manager. This also returns a null. I know the reader is functional, as I have used it with a "desktop" app I wrote a while back. Does anyone have any pointers as to how to get these API calls to work?
Posted
Comments
Fredrik Bornander 21-Nov-14 4:27am    
Are you sure you have allowed access to the reader? I think the GetDefaultAsync will return null rather than chucking an exception on access rights issues.
TimWallace 21-Nov-14 6:11am    
Fredrik, thanks for your reply. I had already edited the manifest to add a DeviceCapability with a value of "pointOfSale" before posting my question. Is that what you mean?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900