Re: dll.e error while doing tcp stuff

new topic     » goto parent     » topic index » view thread      » older message » newer message

Larry Miller wrote:
> 
> The error is not in dll.e but tcp.ew
> 
> The problem is in the declaration of the c_func "WSACleanup" on line 32:
> 
> xWSACleanup = define_c_func( ws2_32, "WSACleanup", {0}, C_INT ),
> 
> It should read:
> 
> xWSACleanup = define_c_func( ws2_32, "WSACleanup", {}, C_INT ),
> 
> A function that takes no parameters should be defined with a null sequence {},
> not {0}.
> It appears that Eu3.0 has improved the error detection here.
> 
> Larry Miller

That did it! Thanks! The tcp demo worked OK except for squaking about:

Warning: local constant txt1 in MyIPAddr.exw is not used
Warning: local constant txt2 in MyIPAddr.exw is not used

as in:

   txt1 = create(LText, "IP Address:", Win, 5, 5, 54, 20, 0),
   txt2 = create(LText, "Computer name:", Win, 5, 25, 77, 20, 0),

How do I get rid of the messages?

BTW, any ideas where I could get a simple CLI tcp demo, i.e. no Windows? This is
my first attempt at "winsock" programming, so I want to unclutter things as much
as possible. Thanks again.
--
duke
SW of Calgary - near the Rockies
http://www.rootshell.be/~perlster/euphoria/

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu