Develop and Deploy ActiveX Control in C#
2010-12-29 11:02
417 查看
最近遇到一个功能需求:在PDA、PC客户端、WebServer之间直接交换数据,因为PDA的同步需要安装ActiveSync,而上传到WebServer时不能直接读取PDA的文件,所以需要先从PDA将文件拷贝到PC,然后再从PC选取文件上传到WebServer,所以想到用ActiveX插件来简化操作,一步到位。
准备
C#开发ActiveX
Wince设备与PC同步,用到OpenNETCF.Desktop.Communication.dll与Microsoft ActiveSync
制作客户端安装包,自动注册ActiveX
JS调用ActiveX
实践
前三部都比较顺利,在以Object标签方式调用(IE选项需要设置启用“初始化和启用未标记为安全的ActiveX”)安装好的插件时遇到了问题,或者不能识别ActiveX,或者不稳定,有时可用,有时不可用,本地没问题,部署到Internet就不行。
相信很多朋友都遇到类似问题,解决方案是:
用 new ActiveXObject初始化实例,然后调用。
准备
C#开发ActiveX
Wince设备与PC同步,用到OpenNETCF.Desktop.Communication.dll与Microsoft ActiveSync
制作客户端安装包,自动注册ActiveX
JS调用ActiveX
实践
前三部都比较顺利,在以Object标签方式调用(IE选项需要设置启用“初始化和启用未标记为安全的ActiveX”)安装好的插件时遇到了问题,或者不能识别ActiveX,或者不稳定,有时可用,有时不可用,本地没问题,部署到Internet就不行。
相信很多朋友都遇到类似问题,解决方案是:
用 new ActiveXObject初始化实例,然后调用。
相关文章推荐
- Using VS2010 Develop ActiveX Control in Windows Form Control Libarary
- Using VS2010 Develop ActiveX Control in Windows Form Control Libarary
- Using VS2010 Develop ActiveX Control in MFC Project
- Using VS2010 Develop ActiveX Control in MFC Project
- How to create (and deploy) a windows service in C# ?
- Optional Parameters and Named Arguments in C# 4
- New Features in C# 3.0, 4.0 and 5.0 (英文差的免入)
- Method and system for implementing mandatory file access control in native discretionary access control environments
- Applying Domain-Driven Design and Patterns(ADDDP) With examples in C# and .NET
- How to Determine if a file is a .Net assembly (in Delphi and C#)
- .net 操作 EXCEL (using c# to control and access the excel)
- constants and fields in c#
- Combining SqlConnection and SqlCommand in one Class in C#
- Intercept and Manage Windows Originated by Third-party Components Hosted in C# Application
- How To Use the ODBC .NET Managed Provider in Visual C# .NET and Connection Strings
- Customize Web Browser ActiveX and change its inbuilt settings
- Dispose and Finalize in C#
- [Angular] Create a ng-true-value and ng-false-value in Angular by controlValueAccessor
- C# in Depth: What you need to master C# 2 and 3
- An article about Equals and GetHashCode functions in C#