PDA

Click to See Complete Forum and Search --> : Sending Types with Winsock


QuakeStuff
Mar 17th, 2000, 07:44 PM
Hi there, any help would be much appreciated...

i'm programming the network code for a game, and i need to send user defined types using the vb winsock (6.0) control. the senddata function won't let me send a type, it says 'Only public user defined types defined in public object modules can be used as parameters or return types for public procedures of class modules or as fields of public user defined types'

apparently there's some way to do this using a byte array, but i have no idea how...

thanks again

pete
www.cintelsoftware.co.uk

Oleg Gdalevich
Mar 19th, 2000, 08:29 PM
Check out http://www.catalyst.com/support/tips/tip03.html

It is a tip, Using Data Structures with SocketWrench in Visual Basic. I think it is easy to aplly to the Winsock Control.