home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK10 / MFC / SRC / PLEX.H$ / plex
Encoding:
Text File  |  1992-01-10  |  872 b   |  31 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library. 
  2. // Copyright (C) 1992 Microsoft Corporation 
  3. // All rights reserved. 
  4. //  
  5. // This source code is only intended as a supplement to the 
  6. // Microsoft Foundation Classes Reference and Microsoft 
  7. // QuickHelp documentation provided with the library. 
  8. // See these sources for detailed information regarding the 
  9. // Microsoft Foundation Classes product. 
  10.  
  11. #ifndef __PLEX_H__
  12. #define __PLEX_H__
  13.  
  14. struct CPlex    // warning variable length structure
  15. {
  16.     CPlex* pNext;
  17.     UINT nMax;
  18.     UINT nCur;
  19.     /* BYTE data[maxNum*elementSize]; */
  20.  
  21.     void* data() { return this+1; }
  22.  
  23.     static CPlex* Create(CPlex*& head, UINT nMax, UINT cbElement);
  24.             // like 'calloc' but no zero fill
  25.             // may throw memory exceptions
  26.  
  27.     void FreeDataChain();       // free this one and links
  28. };
  29.  
  30. #endif //__PLEX_H__
  31.