Visual Studio 2010套接字 [英] Visual Studio 2010 Sockets

查看:131
本文介绍了Visual Studio 2010套接字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VB6中编程了多年,现在可以转换为Visual Studio 2010 Visual Basic.它具有框架4.0.我曾经使用Winsock控件连接到条形码阅读器.连接简单,我正在寻找从扫描仪输入的数据,还将数据发送到扫描仪以触发读取.

我无法弄清楚如何使用vb.net套接字.我的系统是Windows 7 64位.

任何帮助都很好!!!

谢谢,
Joe

I have programmed in VB6 for years and now converting to Visual Studio 2010 Visual Basic. It has framework 4.0. I use to use a Winsock control to connect to a barcode reader. Simple connection and I''m looking for just the data comming in from the scanner and also send data out to scanner to trigger a read.

I cannot figure out how to do it with vb.net sockets. My system is Windows 7 64 bit.

Any help would be great!!!

Thanks,
Joe

推荐答案

没有"Visual Studio套接字"之类的东西.结案.

最后的几点评论:

Visual Studio是IDE.

VB.NET是一种语言(不支持VB,VB.NET是完全不同的语言).使用VB.NET编译器的过程会生成代码.

Visual Studio 2010确实具有VB.NET编译器.编译器与(免费分发).NET Framework捆绑在一起.您实际上并不需要Visual Studio来构建项目和解决方案.它是由MSBuild完成的.

套接字库与程序集System.DLL一起提供.它随.NET Framework一起提供.您可以使用类System.Net.Sockets.Socket http://msdn.microsoft.com /en-us/library/system.net.sockets.socket.aspx [
There is no such thing as "Visual Studio Sockets". Case closed.

Some final remarks:

Visual Studio is the IDE.

VB.NET is a language (VB is not supported, VB.NET is absolutely different language). It is processes using a VB.NET compiler which produces the code.

Visual Studio 2010 does have VB.NET compiler. The compiler is bundled with (freely distributed) .NET Framework. You don''t really need Visual Studio to build projects and solutions. It''s done by MSBuild.

Sockets library comes with the assembly System.DLL. It comes with .NET Framework. You can use the class System.Net.Sockets.Socket, http://msdn.microsoft.com/en-us/library/system.net.sockets.socket.aspx[^] or other classes, such as System.Net.Sockets.TcpListener/TcpClient.

Run-time of the application does not need Visual Studio.

Santa Clause does not exist.

Do you need some information on where children come from?

—SA


这篇关于Visual Studio 2010套接字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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