home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / ACTIVEX / SRDVID / DATA.Z / utility.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-10  |  1.7 KB  |  41 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. //
  3. //    Utility.h : Utility functions...
  4. //
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. //  (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
  8. //
  9. //    You have a royalty-free right to use, modify, reproduce and 
  10. //    distribute the Sample Files (and/or any modified version) in 
  11. //    any way you find useful, provided that you agree that Black 
  12. //    Diamond Consulting has no warranty obligations or liability
  13. //    for any Sample Application Files which are modified. 
  14. //
  15. //    Revision History:
  16. //
  17. /////////////////////////////////////////////////////////////////////////////
  18.  
  19. #define __UTILITY_H__
  20. #include "Surround.h"
  21. #include <windowsx.h>
  22.  
  23. void InfoMsg( LPCSTR string, ... );
  24. void ErrMsg( LPCSTR string, ... );
  25. void DebugMsg( LPCSTR string, ...);
  26.  
  27. HRESULT ReadFromStream( LPSTREAM pIStream, CString& string );
  28. HRESULT ReadFromStream( LPSTREAM pIStream, CSize& cSz );
  29. HRESULT ReadFromStream( LPSTREAM pIStream, BITMAPINFOHEADER** ppDib );
  30. HRESULT ReadFromStream( LPSTREAM pIStream, int* iInteger );
  31. HRESULT ReadFromStream( LPSTREAM pIStream, float* fFloat );
  32. HRESULT ReadFromStream( LPSTREAM pIStream, SPHERE_POINT* sPoint );
  33. HRESULT ReadFromStream( LPSTREAM pIStream, DWORD* dWord );
  34. HRESULT WriteToStream( LPSTREAM pIStream, CString& string );
  35. HRESULT WriteToStream( LPSTREAM pIStream, BITMAPINFOHEADER* pDib );
  36. HRESULT WriteToStream( LPSTREAM pIStream, CSize& cSz );
  37. HRESULT WriteToStream( LPSTREAM pIStream, int iInteger );
  38. HRESULT WriteToStream( LPSTREAM pIStream, float fFloat );
  39. HRESULT WriteToStream( LPSTREAM pIStream, SPHERE_POINT* sPoint );
  40. HRESULT WriteToStream( LPSTREAM pIStream, DWORD* dWord );
  41.