HI, what's the difference, between sending data(via CArchive connected with the socket) with the << operator and with the CArchive::Write(WriteString,...)???
Is there also some other way of doing that?
I don't know exactly what you are looking for but if
I were some MS programer I would've programmed it like aking one of them call another. Because behid it is the same implementation.
Is like GetAt() function and [] operator for the CString class. Anyway, go to C:\Program Files\Microsoft Visual Studio\VC98\Include and look for CArchive implementation in some .cpp and .h files. They are using pretty handy variables names. Or 'step in' when debugging a << or a CArchive::Write line.
One more thing. Take care with sockets. From my experience is better to use try-catch on socket operations with WSAGetLastError calls to always know what is going on.
Hope this gives you some ideas,
(If I would have some more time I would have come up with some more complete answer but...)
s-)
Blessed is he who in the name of justice and goodwill, sheperds the weak through the valley of darkness...
OK, thanx ioinel, I'll try to debug << and Write in CArchive and look in that headers. I'll waste your time more, when I find some more questions ;-)))
Bye 4 now.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.