PDA开发环境

1、我是用Visual Studio 2005来开发的。
2、安装Symbol开发包:Symbol Mobility Developer Kit V1.7 for .NET。
3、安装Microsoft ActiveSync 4.5 中文版,用于连接PDA,部署程序时用到。
4、必须安装Windows Mobile 5.0 Developer Resource Kit,否则程序无法运行(Symbol MC3090的操作系统是WinCE5.0)。
5、在VS2005找不到leader_ww说的Windows Mobile 5.0 Pocket PC Emulator,所以安装了Microsoft Windows CE 5.0 Emulator,但不知道怎么用,每次都得部署到PDA进行调试。
6、我在VS2005的工具箱添加的一个选项卡,名字叫做Symbol Technologies,然后进入选择项在.NET Framework 组件中选择Barcode和Imaging,在选项卡即会出现Barcode、Imaging和MagStripe三个选项。
7、在“引用”里添加 symbol 及 Symbol.Barcode.Design 兩個 DLL文件。
8、添加一个窗体,在窗体上添加一个TextBox命名为tbBarCode。
9、从工具箱中将Barcode选项拖入窗体,默认名称为barcode1
10、打开form1.Designer.cs,在barcode1的定义后加两个方法:
 this.barcode1.OnRead += new
Barcode.Barcode.ScannerReadEventHandler(this.barcode1_OnRead);
this.barcode1.OnStatus += new
Barcode.Barcode.ScannerStatusEventHandler(this.barcode1_OnStatus);
11、在form1.cs中添加上述两个方法的实现过程
private void barcode1_OnStatus(object sender, Symbol.Barcode.BarcodeStatus barcodeStatus)
{
statusBar1.Text = barcodeStatus.Text;
tbBarCode.Focus();
}

private void barcode1_OnRead(object sender, Symbol.Barcode.ReaderData readerData)
{
if (readerData.Result == Symbol.Results.SUCCESS)
{
string BarCode = readerData.Text;
if (BarCode.Substring(0, 1).CompareTo("9") <= 0)//条码:单据号前带箱号
{
BarCode = BarCode.Substring(3, BarCode.Length - 3);//取出单据号
}
tbBarCode.Text = BarCode.ToString();//将条码显示出来

//如果托盘条码不为空,则返回产品信息
if (tbBarCode.Text.Trim() != "")
{
getProductInfo();
}
else
{
tbBarCode.Focus();
tbResult.Text = "托盘条码不能为空,请重新输入!";
}
}
}

12、将barcode1的EnableScanner属性改为True。
13、将应用程序部署到Windows CE5.0 设备进行调试。


------------------------------------
Release Notes for PocketBrowser v3.0.5.1 :见草稿箱
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值