NotImplementedException Error - Winsock?Jul 7, 2010
I am making a chat program.
Private Function winsock1() As Object
Throw New NotImplementedException
I am making a chat program.
Private Function winsock1() As Object
Throw New NotImplementedException
[code].....View 10 Replies View Related
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 recieveView 3 Replies View Related
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)
How Do you install Winsock ....I did everything it said
1.) save target
2.)add to system32
3.)run winsock*************But When i run It Gives me an error code**************
Info about my computer:
+ I have An HP
i have added a winsock control to my program. I know that vb 2008 dosent really support winsock no more but its needed for my project.Anyways i have form1 with a button that does "form2.show"This works as it should and opens form2 but when i add a winsock control to form2 then i get this error when i click the button to show form2
"An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))"
I dont get it, there are no classes apart from the form class.
i am trying to get this code that worked in VB6 just fine to work in VB.net 2008. It doesnt seem to want to connect (but has no error after it goes past the sockMain.Connect().
I get the It doesnt seem that the server is running. Please check it and try again. error.
My screen name should have been TotalN00b. I'm taking a VB.NET class and following the directions in the text to build a project that makes simple queries to a database. Not sure what is wrong here, and there doesn't seem to be any errata for this book that would tell me if the instructions are wrong or something. I used IntelliSense for entering the code and it looks the same as in the book, but when I try to search for names beginning with a certain letter I get an error, shown below:
System.NotImplementedException was unhandled
Message="The method or operation is not implemented."
How can I use winsock in VS 2008? I can't figure it out..View 1 Replies View Related
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?View 1 Replies View Related
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.View 1 Replies View Related
Is this possible and how?Is it hard code or can i learn it?View 1 Replies View Related
i kinda need one.. i know how to make it work in vb10 by upgrading it from vb08, but i need to put it in a allread existing vb10 existing vb10 project, whit multitrheading.. so i cant use .net 2.0View 9 Replies View Related
I have project it use Winsock component if i take Open and Send Data in the same place it error
How can I add winsock Control in my toolbox?View 1 Replies View Related
How to add winsock listener in Vb 2008View 1 Replies View Related
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?View 3 Replies View Related
I'm working on a server/client chat program in vb 2008 using winsock. I have a connection and can send data, but for some reason I can't receive data. [Code]View 2 Replies View Related
I'm trying to connect two programs using winsock, I connected it, but I want to send to the server to do some thing like open the camera . or do any thing .View 1 Replies View Related
i have a problem with my console in vb 2010 ! in windows form applications
we can use this event for winsock control:
i have added 2 winsock controls on form at server side and client side and used 2 different ports 1001,1002both winsocks gets connected i used condition winsock2.state=sckconnected and it shows that connectedi want that at certain time winsock2 will send data the timer gets activatedi put breakpoint on winsock2.senddata() in timer_tick() event the line gets executedbut at client side on winsock2_dataarrival() i put a msgbox() but it never popup
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Recently I was handling a TCP/IP server-client window-based program in VB.NET. But in VB.NET. after I include the winsock on it, it cannot check the state. Normally, in VB6, to check the state is as below: If
I'm trying to put a winsock control into my app using VB 2008 but I'm reluctant to find it. Is there one in this version?View 2 Replies View Related
Actually i want to add a "Refresh button" at the client side such that when it is pressed some specific lines should be executed at the server side.(e.g. when the "refresh button" is pressed at the client side, the server should evaluate some variable "data" and executes this line "winsock.sendData(data)" ) OR Can i set my server to refresh every 30 seconds or so to evaluate some variable and then execute the line "winsock.SendData( )"? is there a way to accomplish any of the above?View 1 Replies View Related
my client/server desktop application that i created in vb.net.....
(1)Actually i want to add a "Refresh button" at the client side such that when it is pressed some specific lines should be executed at the server side.(e.g. when the "refresh button" is pressed at the client side, the server should evaluate some variable "data" and executes this line "winsock.sendData(data)" )
(2)Can i set my server to refresh every 30 seconds or so to evaluate some variable and then execute the line "winsock.SendData( )"??
how to send file using winsock in vb.net and i don't foundView 4 Replies View Related
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've had a problem which Mike has kindly helped me with here: url..I now ahve a problem when disconnecting then trying to connect again. The app works fine once, but throws the exception again if you try to connect the client a second time.View 4 Replies View Related
i have winsock for vb 2008 and for vb 6 but in 2008 not all commands working like Winsock1.Accept RequestID or more you dont know why ? u know i like more working in vb 2008 this is why im asking if im no have old winsock ? for vb 2008 i have there kollman koding and normal microsoft corporation COM?View 6 Replies View Related
how can i make claint/server program without winsocetView 1 Replies View Related
How do I register the control?View 4 Replies View Related
In visual basic 6, there is an index property, but not in 2008. How can i create an array of winsock controls?View 4 Replies View Related
i can load a winsock control at runtime... but i can't figure out how to get its events to pop up.
AddHandler S.Connect, AddressOf SocketConnectEvent
this gives me an error....
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
This must be really obvious, but how do I make a winsock listen to a specific port (recieve data?)View 2 Replies View Related
i write a server program using vb.net but i can not accept multiple client at same time.
procedure or program codes in creating a remote desktop application using visual studio, vb.net with the tool Winsock. I've heard in blogs and forums that Winsock can be a good tool in creating a remote desktop.View 4 Replies View Related
Using vb.net Winsock Can we send SQL Query from Server to client?View 1 Replies View Related
I have found many great resources for this on VB6 but there isn't much regarding VB .NET 2008.View 1 Replies View Related
I am using VB 06 code for MS winsock and no im not supprised its not working properly but I cant find any tutorials anyware for VB 08 and its starting to anoy me. I have managed to reorginise some of the code so it works but im at a loss to know what to do to correct these errors. .
sckmain.SendData("[" & txtname.Text & "]" & txtsend.Text)
txtlog = txtlog.Text & "[" & txtname & "]" & txtsend.Text & vbCrLf
txtsend.Text = ""
Host Button this works:
sckmain.LocalPort = txtport.Text
Connect button this works:
sckmain.RemoteHost = txtip.Text
sckmain.RemotePort = txtport.Text
sckmain.Connect()sckmain.RemoteHost = txtip.Text
If sckmain.State <> sckClose Then
I am currently learning how to program in VB and am using sample code to make a VB Winsock client and server. I beleive the sample code was from VB 6.0. [code]Overload resolution failed because no accessible 'GetData' accepts this number of arguments.I am getting the exact same error in the exact same place in the server aswell. I have tried removing the vbString, but it comes up with a warning and the program doesn't function like it should. I am programming this in Visual Basic 2010 Express.View 3 Replies View Related
my project is attached. I have a very weird problem with Winsock! I made 1 program with 2 forms. 1st form is the client, 2nd form is the server. Server send snapshot for client. So, client display either Single Picture. Or stream of pictures (to simulate video capturing).
when open 1st window (client) in a computer, and 2nd window(server) in another computer... it connect and display picture without problem just once!! when press "Capture" button again it may reponse or Winsock may loss connection. and when Check "Loop"=> means for stream of pictures.. Winsock loss connection immediatly! I don't know where is the problem exactly! The code attached. Winsock ocx is attached.. see it in the release folder
I am trying to make a basic server/client program but I ran in a problem.
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 am testing an server-client application which captures a desktop's screenshot, saves it on a directory and then sends it to the server. But i am facing a problem. It sends me 0 bytes :S. Here is the client's
Dim i As Integer
Dim ReadData(2047) As Byte
Dim ReadLength As Long
I have some problem receiving data with GetData after using post method. GetData returns nothing.
Here is the code I use:
Dim retData As String
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Im adding a file transfer through a winsock control in my app. But the connection to it seems to be wrong
clientside Private Sub cmdConnect_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles cmdConnect.Click