D
Darin
I have written software for the Symbol MC9060 which works great. It
requires a Symbol SDK loaded on the symbol unit for some barcode reader
specific DLLs.
Now, I need this to work on a non-symbol machine. I don't want to have
to have 2 versions of the source code, one that has the barcodereader
and one that doesn't. Can I do this.
Below is a sampling of code:
In the #Region " Windows Form Designer generated code"
Friend WithEvents BarcodeReader1 as symbol.barcode.barcodereader
me.barcodereader1=new symbol.barcode.barcodereader
Then in the MyBase.Load:
Barcodereader1.start
So, I have the barcodereader.start in an IF block verifing it is a
symbol device or not, but when I run the software on the intermec I get
an error: NullReferenceException on any program that has the
barcodereader loaded.
Is there a way to not even define the barcodereader if it isn't symbol.
Thanks.
requires a Symbol SDK loaded on the symbol unit for some barcode reader
specific DLLs.
Now, I need this to work on a non-symbol machine. I don't want to have
to have 2 versions of the source code, one that has the barcodereader
and one that doesn't. Can I do this.
Below is a sampling of code:
In the #Region " Windows Form Designer generated code"
Friend WithEvents BarcodeReader1 as symbol.barcode.barcodereader
me.barcodereader1=new symbol.barcode.barcodereader
Then in the MyBase.Load:
Barcodereader1.start
So, I have the barcodereader.start in an IF block verifing it is a
symbol device or not, but when I run the software on the intermec I get
an error: NullReferenceException on any program that has the
barcodereader loaded.
Is there a way to not even define the barcodereader if it isn't symbol.
Thanks.