Hey
Anyone has any idea how to convert from any data type to strings.. so that i may use the winsock send functions for sending data.. as only strings can be sent in that..
i need to send structures .. so have to convert them..

>Anyone has any idea how to convert from any data type to strings

C: sprintf
C++: ostringstream

>as only strings can be sent in that

Not entirely true, but you may want to use the conversion to string method anyway, because...

>i need to send structures

Sending structures will likely have other issues.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.