Reply With Quote Quick Navigation Programming Tips and Tricks Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Overclockers.com Community News & Community Announcements Overclockers.com Article The time now is 07:39 PM. end if ' now you reopen it, or do whatever else you need '==================================== Also, try downloading SP3 (the winsock control in the newest/latest Microsoft VB). Reply With Quote August 19th, 2004,01:26 AM #7 HanneSThEGreaT View Profile View Forum Posts CG Bouncer Power Poster Join Date Jul 2001 Location Sunny South Africa Posts 11,224 Morning! imp source
I Understand your concern. 'New ActiveX EXE 'Project/Project Properties/Compile TAB/ P-CODE 'Instancing = 3 SingleUse '----------- DownloadUpdates.cls -------------- Option Explicit Private intPort% Private strServer$ Private strUsername$ Private strPassword$ Private strLocalFile$ Private You may have to register before you can post: click the register link above to proceed. So..
Originally Posted by jp140768 Do you need to have the following property set for the inital socket (i.e. By the way, in this version, I removed all reference to ReadNewsFile and am simply downloading the file directly. 0 Message Author Comment by:John Account2005-09-28 It works fine on my Open up your Main project and add the reference to your compiled ActiveX.exe 'Add the following code to Form_Load event Private Sub Form_Load() On Error GoTo ErrEXE Join & Ask a Question Need Help in Real-Time?
I'm going to try it on a few other machines...to see how it works. when the program loads and then tried to send a command i get an error, now if i trap this process with a breakpoint and keep trying it will work. MyUpdates.ReadNewsFile "www. I will post the code, hopefully some one can tell me what I am doing wrong.The code for the server is [code]Option ExplicitPrivate Sub cmdSend_Click() Winsock.SendData txtChat.Text DoEvents txtMain.Text = txtMain.Text
Here is my code for the server Code: Private Sub Form_Load() tcpClient2.RemoteHost = "Cmdupreez" tcpClient2.RemotePort = 1001 End Sub Private Sub cmdConnect_Click() tcpClient2.Connect End Sub Private Sub Form_Unload(Cancel As Integer) tcpClient2.Close However, if I remember correctly the server should be listening for the client, you use the property winsock.listen. http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_10315945.html?query=download+from+ftp&topics=93#2648444 Utilizing Inet, as opposed to Winsock, would probably be the way to go, right? 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert doesn't matter 0 Message Author Comment by:John Account2005-09-27 UGH, silly me.
A listening socket can't accept a connection, and the socket accepting the connection request doesn't get a Connect event.I made a chat-type server like this a while back. this Join our community for more solutions or to ask questions. Style Default Style Contact Us Help Home Top RSS Terms and Rules Copyright © TechGuy, Inc. Join & Ask a Question Need Help in Real-Time?
Do you need to have the following property set for the inital socket (i.e. Check This Out I'm using TCP I get this error in run time Both computers are "connected" by clicking the Connect button on each, but when it is about to send the data (txtSend_LostFocus), Tweet Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Jan 9th, 2002,01:34 AM #1 sivanat View Profile View Forum Please start a New Thread if you're having a similar issue.View our Welcome Guide to learn how to use this site.
Are you serious???--I sure hope so!!! 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Accepted Solution by:nffvrxqgrcfqvvc2005-09-27 'Alright give this a shot. Try the following code: Go to Solution 10 Comments LVL 17 Overall: Level 17 Visual Basic Classic 7 Visual C++.NET 2 Message Expert Comment by:Zhaolai2010-08-18 You have to wait for I will get back to you. Source Please help! 0 Question by:souldigital Facebook Twitter LinkedIn Google LVL 17 Best Solution byZhaolai Now I see why you want to have all the code in one sub...
Suggested Solutions Title # Comments Views Activity Excel 2010 Macro to Format Number to Remove the .0 at the End 4 36 105d How to add contact name to VBA code Running my program overnight through the VB debug "the play icon" mode highlighted my "Winsock1.GetData temp" under the sub of data arrival. Reply With Quote 06-14-04,11:38 AM #2 Krieger View Profile View Forum Posts Member Join Date Jan 2002 Location North of Boston, MA Without looking at the full source I'd have
subscribe Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview! Possibly 5.0 While latebinding is more version compatible if the machine is not up to date then you will get this error 0 Message Author Comment by:John Account2005-09-28 It started I think I followed your instructions to a T, but there's obviously something I'm missing. But they are not before they are compiled into a setup exe. 0 LVL 29 Overall: Level 29 Visual Basic Classic 26 Programming Languages-Other 6 Message Expert Comment by:nffvrxqgrcfqvvc2005-09-28 You
What port are you trying to connect on? Hannes All my Articles Hannes Reply With Quote August 18th, 2004,11:08 AM #2 jp140768 View Profile View Forum Posts Member + Join Date Jun 2002 Location Clane, Ireland Posts 766 Which side is giving you the error: Client or Server? 1) I have set the .Protocol Property to sckTCPProtocol 2) I still get Error 40006 3) I don't know if something have a peek here Loading...
© Copyright 2017 nbxcorp.com. All rights reserved.