home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 27 / IOPROG_27.ISO / SOFT / ADSDK.ZIP / Samples / General / ADQI / StdAfx.h < prev   
Encoding:
C/C++ Source or Header  |  1999-04-06  |  1.5 KB  |  55 lines

  1. // stdafx.h : include file for standard system include files,
  2. //  or project specific include files that are used frequently, but
  3. //      are changed infrequently
  4. //
  5.  
  6. #if !defined(AFX_STDAFX_H__81709773_0672_11D2_B218_0000F87A6B50__INCLUDED_)
  7. #define AFX_STDAFX_H__81709773_0672_11D2_B218_0000F87A6B50__INCLUDED_
  8.  
  9. #if _MSC_VER >= 1000
  10. #pragma once
  11. #endif // _MSC_VER >= 1000
  12.  
  13. #define VC_EXTRALEAN        // Exclude rarely-used stuff from Windows headers
  14.  
  15. #include <afxwin.h>         // MFC core and standard components
  16. #include <afxext.h>         // MFC extensions
  17. #ifndef _AFX_NO_AFXCMN_SUPPORT
  18. #include <afxcmn.h>            // MFC support for Windows Common Controls
  19. #endif // _AFX_NO_AFXCMN_SUPPORT
  20. #include <afxole.h>
  21. #include <atlbase.h>
  22. #include <atlconv.h>
  23. #include <activeds.h>
  24.  
  25.  
  26. typedef void (* ADSDLGPROC)(LPUNKNOWN, LPUNKNOWN*);
  27.  
  28. typedef struct tagADSIIF 
  29. {
  30.     const GUID    *pIID;
  31.     LPTSTR           szIf;
  32.     ADSDLGPROC     pFn;    
  33. } ADSIIF;
  34.  
  35. typedef struct tagADSERRMSG
  36. {
  37.     HRESULT    hr;
  38.     LPCTSTR    pszError;
  39. }ADSERRMSG;
  40.  
  41. #define MAKEADSENTRY(x)  &IID_##x, _T(#x) 
  42. #define ADDADSERROR(x)   x, _T(#x)
  43. #define DECLAREADSPROC(x) void DlgProc##x(LPUNKNOWN, LPUNKNOWN *ppNew=NULL); \
  44. void DlgProc##x(LPUNKNOWN pUnk, LPUNKNOWN *ppNew) { CDlg##x dlg( pUnk); dlg.DoModal(); }
  45.  
  46. #define ARROW_SYMBOL _T("--> ")
  47.  
  48. #include "helper.h"
  49.  
  50. //{{AFX_INSERT_LOCATION}}
  51. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  52.  
  53. #endif // !defined(AFX_STDAFX_H__81709773_0672_11D2_B218_0000F87A6B50__INCLUDED_)
  54.  
  55.