:confused:

.data
wsadata1 WSADATA <>

.code
INVOKE WSAStartup, 200h, ADDR wsadata

When I check, whether the function was successfuly, i dont get a NULL.

Are you also confused ?


P.S. Could someone suggest some more uts about d?nersock-programming ? -the one if icz i already read. THX
Posted on 2003-04-17 10:47:49 by Forginforcer
Probably just a typo in the post, but...


.data
wsadata1 WSADATA <>

.code
INVOKE WSAStartup, 200h, ADDR wsadata <--- where's the "1" ?


i've actually done that a couple of times
Posted on 2003-04-17 10:57:30 by NervGaz
http://www.madwizard.org/view.php?page=tutorials.networking.chapter4&lang=asm

Read about the arguments of which that functions takes.
Posted on 2003-04-17 10:58:03 by gorshing
Yes, its just a typo. I have 2 wsadata strucs

What should I do, gorshing ?
Posted on 2003-04-17 11:29:37 by Forginforcer
Try


.data
wsadata1 WSADATA <>

.code
INVOKE WSAStartup, 0002h, ADDR wsadata1

Posted on 2003-04-17 11:43:21 by roticv
Hey Forgin...

Do i get an distinct feeling about you making fun of us?

There is such an easy error in the above code...

Man you really ... really can not find it?

I mean how many caracters are there in to serarch for errors?

Tips: what version of sockets are you hunting for?
Posted on 2003-04-17 11:44:23 by BogdanOntanu
Plus my hint of Read

Plus I gave him a link to read and he still asks
What should I do, gorshing ?


that was an actually typo, thanks bazik
Posted on 2003-04-17 12:12:53 by gorshing
Bogdan, gorshing,
you are just making fun of him by adding spelling errors to your replies ;)
Posted on 2003-04-17 12:24:22 by bazik
@BogdanOntanu
Do you have childs ?
You seem to be very ununderstaning.
In education there a two topmost inmportand things: love && understaning.
With your testimony your show, that you havn't both of them, because you place me in blame, can NOT accept real novices and errros, wich can a beginner make or even occurs in this tutorial(that could also be an error):
http://win32assembly.online.fr/asmsockguide.html

simply search for 200 and you will explorer this line:
If you want to specify version 1.1, use 101h if you want to use version 2.0, use 200h

And in advance I talked about a simple winsock, and noone said, that 200h is wrong.

I will try 2h know ! Thanks a lot !
Posted on 2003-04-17 12:28:49 by Forginforcer
@bazik
thanks ! Perhaps I'm very newbie, but that can't be apology to say such bad things.
Maybe I'm a bad programmer, but I can accept other peoples. Nad thats very important.

I have treyed your sugestions and its work fine ! *hihi*
Did you saw the site I gave you ? There is an error ! - isn't it ?

Deep regards FF.

P.S. gorshing,
bazik,
donkey,
BogdanOntanu,
and roticv

GREAT THANKS !
Posted on 2003-04-17 12:58:12 by Forginforcer
Now I can mess around a little bit ! - Thanks !

P.S. Is there a mistakre at the IP declaration ?
Posted on 2003-04-17 13:42:31 by Forginforcer