home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////////////////////////////////////////////////////
- //
- // Utility.h : Utility functions...
- //
- /////////////////////////////////////////////////////////////////////////////
- //
- // (C) Copyright Black Diamond Consulting, Inc 1996. All rights reserved.
- //
- // You have a royalty-free right to use, modify, reproduce and
- // distribute the Sample Files (and/or any modified version) in
- // any way you find useful, provided that you agree that Black
- // Diamond Consulting has no warranty obligations or liability
- // for any Sample Application Files which are modified.
- //
- // Revision History:
- //
- /////////////////////////////////////////////////////////////////////////////
-
- #define __UTILITY_H__
- #include "Surround.h"
- #include <windowsx.h>
-
- void InfoMsg( LPCSTR string, ... );
- void ErrMsg( LPCSTR string, ... );
- void DebugMsg( LPCSTR string, ...);
-
- HRESULT ReadFromStream( LPSTREAM pIStream, CString& string );
- HRESULT ReadFromStream( LPSTREAM pIStream, CSize& cSz );
- HRESULT ReadFromStream( LPSTREAM pIStream, BITMAPINFOHEADER** ppDib );
- HRESULT ReadFromStream( LPSTREAM pIStream, int* iInteger );
- HRESULT ReadFromStream( LPSTREAM pIStream, float* fFloat );
- HRESULT ReadFromStream( LPSTREAM pIStream, SPHERE_POINT* sPoint );
- HRESULT ReadFromStream( LPSTREAM pIStream, DWORD* dWord );
- HRESULT WriteToStream( LPSTREAM pIStream, CString& string );
- HRESULT WriteToStream( LPSTREAM pIStream, BITMAPINFOHEADER* pDib );
- HRESULT WriteToStream( LPSTREAM pIStream, CSize& cSz );
- HRESULT WriteToStream( LPSTREAM pIStream, int iInteger );
- HRESULT WriteToStream( LPSTREAM pIStream, float fFloat );
- HRESULT WriteToStream( LPSTREAM pIStream, SPHERE_POINT* sPoint );
- HRESULT WriteToStream( LPSTREAM pIStream, DWORD* dWord );
-