home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / include / afxplex_.h < prev    next >
C/C++ Source or Header  |  1998-06-16  |  1KB  |  54 lines

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 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 related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10.  
  11. #ifndef __AFXPLEX_H__
  12. #define __AFXPLEX_H__
  13.  
  14. #ifndef __AFX_H__
  15.     #include <afx.h>
  16. #endif
  17.  
  18. #ifdef _AFX_PACKING
  19. #pragma pack(push, _AFX_PACKING)
  20. #endif
  21.  
  22. #ifdef AFX_COLL_SEG
  23. #pragma code_seg(AFX_COLL_SEG)
  24. #endif
  25.  
  26. struct CPlex     // warning variable length structure
  27. {
  28.     CPlex* pNext;
  29. #if (_AFX_PACKING >= 8)
  30.     DWORD dwReserved[1];    // align on 8 byte boundary
  31. #endif
  32.     // BYTE data[maxNum*elementSize];
  33.  
  34.     void* data() { return this+1; }
  35.  
  36.     static CPlex* PASCAL Create(CPlex*& head, UINT nMax, UINT cbElement);
  37.             // like 'calloc' but no zero fill
  38.             // may throw memory exceptions
  39.  
  40.     void FreeDataChain();       // free this one and links
  41. };
  42.  
  43. #ifdef AFX_COLL_SEG
  44. #pragma code_seg()
  45. #endif
  46.  
  47. #ifdef _AFX_PACKING
  48. #pragma pack(pop)
  49. #endif
  50.  
  51. #endif //__AFXPLEX_H__
  52.  
  53. /////////////////////////////////////////////////////////////////////////////
  54.