Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

WhipExamples/ReadTwoBlocks.cpp

#include "whiptk\whip_toolkit.h"

void ReadTwoBlocks()
{
    WT_File file1, file2, file;

    file1.set_filename("c:\\test1.dwf");
    file2.set_filename("c:\\test2.dwf");
    file.set_filename("c:\\test.dwf");
    file.set_file_mode(WT_File::Block_Read);

    file.open();

    WT_Directory directory = file.get_directory();

    if (directory.count() >= 2) 
    {
        WT_BlockRef *first, *second;
        first = (WT_BlockRef *) directory.get_head();
        second = (WT_BlockRef *) first->next();
        file.read_block(file1, *first);
        file.read_block(file2, *second);
    }

    file.close();
}

Generated on Tue May 17 12:38:50 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1