CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2001
    Location
    ROMANIA
    Posts
    30

    Getting the size of a CArchive

    i'm using the CArchive object in an application that is using internet, and is communicating through some CArchive objects (see the NDK2.0 class)...
    the problem is that when i receive the CArchive, i must know the size of the data within it, because if i try to read a data buffer that is larger than the data available, the program remains somewhere in the sockcore.cpp (or something like this), waiting for some data...i guess that it is waiting for the rest of the data, but that data never arrives, because it wasn't sent....
    a solution i guess that will be to read the archive byte by byte but that seems quite crazy...

    so, i'm waiting and hoping for some answers...

    thank you

  2. #2
    Join Date
    May 2003
    Posts
    347
    Hi

    I think your problem is already explained in MSDN

    do a search in MSDN CArchive+Size



    reg

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured