VS 2008 Does Winsock Control In Work Over Internet
Apr 11, 2010
I have been looking at a lot of examples an have tried a lot of them but it seems that it only works on a lan and not the internet. If you want me to show you the code I've been using I can show you it.Also, does the winsock control in VB6 work over the internet?
Alright so I'm using Windows Vista Ultimate with a 64 bit processor and the winsock control won't work.Originally Microsoft Visual Basic 2008 didn't have the winsock control, so I downloaded it and registered it correctly and it still wont work. I have no idea what to do,
I cannot get WinSock running. I am running XP Pro, with VS2008. I have downloaded mswinsck.ocx and installed in the c:windowssystem32 and syswow64 directories and ran regsvr32 C:windowsSystem32MSWINSCK.OCX and regsvr32 C:windowsSysWOW64MSWINSCK.OCX. I have added it to my tools panel. Once I add the control to my form, the form will not run. I get the error below. It I cannot even run other winsock examples.
I am working with LAN connection in visual basic where in SERVER AND CLIENT PC's are transmitting data back and fort with the SQL database . when i click the program says like this (look at the picture below .. picture1)
in debugging the MSWINSOCK in visual basic (picture2)
I have a app that sends me a text message to my cell when my pc starts up. i want to be able to send that app a "packet" or "signal" via the internet to control somesort of action like run a program or pop up a pre defined message or even shut the pc down. im not sure how to send packets or recieve them if its even possible, i know there will be some port forwarding needed on my routers end and i can do that part.
I am doing my project in vs 2008 for WIFI transfer . We have to use winsock control to do this but in vs2008 there is no win sock control.Later we found that it is available in vb6.So i am trying to do in vb6.Can u assist me to develop coding to transfer data from one PC to another through WIFI?
How do I properly add a Winsock Control in WPF for purpose of LAN applications? I tried adding the Winsock control dynamically but then the event functions are not available then.
I'm in college and I want to show my friend how to use winsock but for some reason, I can't add the Winsock control through references. Is there any way to load it through code?
Public Class Form1 Dim S As MSWinsockLib.Winsock Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
I am developing a Door Access Control System which talks the hardware's firmware via TCP/IP. The first version was a success and done using VB6 Winsock Control 6.0. Currently, I am doing the second version in VB.NET and the pain is with the socket. Winsock Control 6.0 is such a blessing (finally admitted) Does anyone know the default encoding of Winsock Control 6.0 in VB6 so that I can set it exactly to the encoding for socket in VB.NET. ANSI (VB.NET) seems to work (but not fully tested with the hardware), but is there something more specific?
Iv just started using a winsock control in VS 2010.
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load sckListen.Listen() sckConnect.Connect(sckListen.LocalIP, sckListen.LocalPort)
[code]....
On data retrieval, it comes out as number instead of text. Im guessing ASCII?Why is it doing this? Do I need to convert each ASCII number into a character?
I am facing trouble in my application. What I need is when I press search button a URL should be passed to IE. Irrespective of how many times I press Search. Every time it should open in same windows instead of opening in a new internet explorer. I have used shdocvw.dll for the same. Here is my code: I have decleared following as global decleration:
I am developing project on cyber cafe using vb .net 2005 and winsock i don't know how to accept connections from multiple clients to a server having winsock control
I have an ActiveX exe that works on word document. I want to make the ActiveX exe to work inside internet explorer. For Ex: if there is a link in a web page pointing to word document, clicking that link should open the word document in my application but inside the internet explorer itself. What i am able achieve till now is i am able to open the word document in my application but in my application window using MIME.
Ive been trying to get this tcp server to work it uses winsock, I can connect to the server fine but as soon as i send a messege It errors with this messege Unable to determine size of incomming packet. It's possible you may need to use Legacy SupportWinsock_Orcas.AsyncSocket.ReceiveCallbackWhat does this mean?note: vb isnt making this error the program itself is, a link to the project is:I think error might be the cause of all the failures of Tcp servers i have tried how it would only recieve
I am trying to make a basic server/client program but I ran in a problem.
[Code]....
When I click connect in the GUI the first state of sock.ctlstate is 6 , connecting then the connected event is triggered and after that the sock.ctlstate is 8 , "Peer is closing the connection". But I dont understand why it does this. I should keep the connection alive to communicate.
I need to put in some winsock controls in one of my applications but I can't find them anywhere in Visual Basic 2008 Express Edition. If there aren't any could someone give me the download link to Visual Basic 2006?
I have a user app written in VB which up till now has relied on winsock to connect to another device we have. The user app logs onto the device and then send / receives status reports from it which are used to set the controls on the apps forms.
This has all worked well for a long time but I'm now looking to move away from Winsock as I know it's not 'the right way' to do things and I also need to be able to send non ascii characters between the app and the device it's connected to (implementing multi language support).
The issue is with Winsock it would simply throw the DataArrival event when a message was received and I could then process the message and act upon it. When using a TcpClient socket connection I'm running into problems as all responses are on the socket thread which means I can't simply change controls on the main form without using the Invoke check.
What I want to be able to do is have the thread running the TcpClient simply alert the main form thread when it receives data and make that data available to the main thread so it can start processing it and triggering all the other functions etc required (these also interact with the Form). Whilst this is happening the TcpClient monitors any further messages and sends response messages as requested from the main thread.
i wrote some code to control an ip device, i made in windows forms application , silverlight and asp.net, they all work on the local network , but won't work from internet web server, i have the router forwarding to local device ip and port,
i get this error:
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 226.45.306.158:4999
here's the code used
Private Function SendRelayCommandTest(ByVal e As String) As String 'SendTextToIP("setstate,1:" & thePort & "," & TheState) 'Dim IPHostCC1 As String = "192.168.1.105"
I want to create a simple client server with GUI to control my little internet cafe in my house.My Question :
1. Where I can get some tutorial to control another computer with my server application
2. Where I can get some tutorial to control bandwidth usage (if can or available)
Honestly, for number one question, I want to block or control user for opening Porn site or Download with download manager that take too much bandwidth so it's affect another user connect too slowlyJust it for billing timing, pricing or another like that I can to program it, but for controling I still didn't understand.
I have a WebBrowser control on one of my forms to provide information to users when they use my program. If the user is connected to the Internet it works fine.But if they are not connected to the internet, it shows the Internet Explorer message saying that there are connection problems.