问题
I search for Argox mobile SDK for .NET C#. I was downlod SDK from http://www.argox.com/content2011.php?sno=0000033&P_ID=53 but it not working, couse it's for c++ I think... ;/
回答1:
I just checked there web site and the internet, there should be some .NET examples installed with the SDK: http://webcache.googleusercontent.com/search?q=cache:zPo5BIItBLEJ:www.argox.com/file.php%3FA_ID%3D213+&cd=3&hl=en&ct=clnk
I did not finish to download and install the SDK. If it really does only support C/C++ as written here http://webcache.googleusercontent.com/search?q=cache:VTResc3njWYJ:www.koncept-l.pl/assets/Wsparcie/Pliki-do-pobrania/Terminale_kolektory_danych_komputery/Terminale-reczne/Argox_PT-60_Programming_manual_v1.2-.pdf+&cd=10&hl=en&ct=clnk you have to build your own .NET library using P/Invoke on the native API.
AFAIS the scanner API uses messages to inform a listener about scanned data is ready: BOOL API_Register(hwnd) That can be used from .NET via a P/Invoke and using the forms handle as hwnd parameter. You have also to implement a MessageWindow and listen for SM_Data_Ready (see the PT-60 SDK include header file for the const value). Then your code can call API_GetBarData (another p/invoke to define) to read the actual barcode data.
If you need help implementing a .NET library for the PT-60, do some more search on P/Invoke. There are also some auto-generators http://blogs.msdn.com/b/bclteam/archive/2008/06/23/p-invoke-interop-assistant-justin-van-patten.aspx
(https://www.google.com/search?q=generate+p%2Finvoke+lib)
来源:https://stackoverflow.com/questions/12502470/argox-mobile-computer-sdk