1.
自绘List!http://www.domaindlx.com/e_morcillo/download.asp?type=cod&file=ctl_mllist
MultiLine ListBox
  This code shows how to create an OWNERDRAW ListBox to make multiline items with images.Dependencies: None
Download: ctl_mllist.zip (22 Kb)
Published: 04/01/2000
Hits: 9964

解决方案 »

  1.   

    1、利用CSocketFile类和Archive类实现 
    (1)Server 
    // construct a socket 
    CSocket sockSrvr; 
    // create the SOCKET 
    sockSrvr.Create(nPort); 
    // start listening 
    sockSrvr.Listen( ); 
    //construct a new, empty socket 
    CSocket sockRecv; 
    // accept connection 
    sockSrvr.Accept( sockRecv ); 
    // construct file object 
    CSocketFile file(&sockRecv); 
    // construct an archive 
    CArchive arIn(&file, CArchive::load); 
    /*or*/_CArchive arOut(&file, CArchive::store); 
    // use the archive to pass data 
    arIn >> dwValue; 
    /*or*/ arOut << dwValue; 
    (2)Client 
    // construct a socket 
    CSocket sockClient; 
    // create the SOCKET 
    sockClient.Create( ); 
    // seek a connection 
    sockClient.Connect(strAddr, nPort); 
    // construct file object 
    CSocketFile file(&sockClient); 
    // construct an archive 
    CArchive arIn(&file, CArchive::load); 
    /*or*/_CArchive arOut(&file, CArchive::store); 
    // use the archive to pass data 
    arOut << dwValue; 
    /*or*/ arIn >> dwValue; 
      

  2.   

    楼上的是VC++的代码呀
    VB的不一样的。我看到过这方面的书
      

  3.   

    真的没有其它的办法实现第1个问题吗?
    能把文件传送的具体过程(或者原理)给我讲一下吗?zyl910(910:分儿,我来了!)我上不去那个网址,能不能发给我
    Mail:[email protected]