| | |
Pass variables through network connection
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Would anyone know how, if it's possible, to pass a user defined type through a network connection say using winsock?
For example:
As far as i know, winsock only sends text or raw data, anyone know if this is possible?
For example:
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
type tExpl name as string address as string phone as string end type dim myExpl as tExpl winsock1.send myExpl
As far as i know, winsock only sends text or raw data, anyone know if this is possible?
------------------------------------------------------------
If you see no coffee in my immediate vicinity, speak slowly and use small words....
ConnectNL Directory | Blog
If you see no coffee in my immediate vicinity, speak slowly and use small words....
ConnectNL Directory | Blog
No. The reason is because how VB handles UDT's in Late-Bound functions.... you could in theory cast it to an object, but trying to send an object through a socket never works right. Your best bet, is to convert the UDT to a single string variable, delimited by a character sequence of your choice, and then on the other side (the server, or whatever is "recieving" the UDT) rip apart the string by the delimiter and put it back into a UDT.
![]() |
Similar Threads
- I lose my network connection for a few seconds every 2 hrs. and then get it back (Networking Hardware Configuration)
- Wireless Network Connection and NetGear (WG111v2) wireless adapter (Networking Hardware Configuration)
- no network connection ANYWHERE (Networking Hardware Configuration)
- Use a Shortcut to Local Area Network Connection Information (Windows tips 'n' tweaks)
- How to Enable ICS on a Home or Small Office Network Connection in Windows XP (Windows tips 'n' tweaks)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: QBASIC -> VB6 conversion
- Next Thread: Network LAN Connection to be Enabled/Disabled
Views: 1486 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






