Jump to content

TCPStartup ( ) get an error


Recommended Posts

i try to use TCPStartup() but i got an error , and here's an error return when i runt he program

ERROR: TCPStartup() [built-in] called with wrong number of args.

TCPStartup ( )

~~~~~~~~~~~~~^

i use beta v3.1.1.91 (beta)

-----------------------------------------------------------BSECE, MCPAIM: juliusrmsYM: jivy_21@yahoo.comMSN: juliusLramos@hotmail.comMobile #: (Globe): +639167031989Web: http://www.trendmicro.com

Link to comment
Share on other sites

If you are using SciTe please use Alt + F5 to run it as beta otherwise make sure you have toggled the beta in

Start Menu ---> Programs ---> AutoIt v3 ---> Beta ---> Toggle AU3 Beta

Please repost if this works or not.

AutoIt Smith

Edited by AutoIt Smith
Link to comment
Share on other sites

TCPStartup() should not have any spaces in it.

TCPStartup()

You should be running the BETA with SciTe Updated as of the download page.

http://www.autoitscript.com/autoit3/scite/downloads.php

Make sure your definition files are up to date and switched to Beta .91

AutoIt Smith

P.S. Try my TCP Made Easy functions and see if you get the same error when NOT running from SciTe :

http://www.autoitscript.com/forum/index.ph...topic=18738&hl=

Example

TCPStartUp()
$MainSocket = TCPListen(@IpAddress1, 100)
While 1
   $ConnectedSocket = TCPAccept($MainSocket)
   If $ConnectedSocket <> -1 Then
      $Data = TCPRecv($ConnectedSocket)
      If $Data <> '' Then MsgBox(0, "Data Recieved", $Data)
   EndIf
WEnd
Func OnAutoItExit()
   TCPCloseSocket($ConnectedSocket)
   TCPCloseSocket($MainSocket)
   TCPShutdown()
EndFunc
Edited by AutoIt Smith
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...