WPF中MSWINSCK.OCX的任何替代方案? [英] Any Alternative for MSWINSCK.OCX in WPF?

查看:237
本文介绍了WPF中MSWINSCK.OCX的任何替代方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



在WPF中使用MSWINSCK.OCX是否有其他选择,因为我们无法直接使用MSWINSCK在WPF中.OCX,我们使用MSWINSCK.OCX创建了Winform控件,然后在WPF项目中使用了它。它在我们的开发平台上工作,但在客户环境中部署时,它给我的错误如下:



Hi All,

Is there any alternative for using MSWINSCK.OCX in WPF, as we can''t directly use MSWINSCK.OCX in WPF, we have created Winform control using MSWINSCK.OCX and then used same in WPF project. Its worked on our development platform but while deploying it on client''s environment its giving me error as :

System.ComponentModel.LicenseException: You must have a license to use this ActiveX control.
at System.Windows.Forms.AxHost.CreateInstance()





提前致谢,



Kunal



Thanks in advance,

Kunal

推荐答案

或者您可以完全删除OCX并使用System.Net命名空间中的内置Socket类重写.NET Framework。
Or you could just drop the OCX entirely and rewrite using the built in Socket classes in the System.Net namespace in the .NET Framework.


也许这会有所帮助:

OstroSoft Winsock组件 [ ^ ]

下载 oswinsck.exe (适用于.NET的版本)。



OstroSoft Winsock组件



许可

可用于任何版本的Visual Basic和任何语言,支持COM



分发

仅需要oswinsck.dll和VB运行时



用法

不需要视觉间face,可以在课堂模块中使用



脚本

为脚本提供阻止调用
Maybe this will help:
OstroSoft Winsock Component[^]
Download oswinsck.exe (The version that works with .NET).

OstroSoft Winsock Component

Licensing
Can be used in any version of Visual Basic and in any language, supporting COM

Distribution
Requires only oswinsck.dll and VB runtimes

Usage
Doesn''t require visual interface, can be used in class modules

Scripting
Provides blocking calls for scripting


我使用System.Net创建了自己的组件.Socket

:)



问候



Kunal Daud
I have created my own component using System.Net.Socket
:)

Regards

Kunal Daud


这篇关于WPF中MSWINSCK.OCX的任何替代方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆