Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
msgerr.hxx
Package: win2ksrc.rar [view]
Upload User: caisha3
Upload Date: 2013-09-21
Package Size: 208739k
Code Size: 2k
Category:
Windows Develop
Development Platform:
Visual C++
- /////////////////////////////////////////////////////////////////
- // LASTERR.H
- //
- // Copyright 1986-1996 Microsoft Corporation. All Rights Reserved.
- //
- //
- // last err support object.
- //
- //There should be no global objects of this class
- // because by the time the dectructor of a global CLastError
- // is called, MAPIFreeBuffer does not work.
- #ifndef __LASTERR_H__
- #define __LASTERR_H__
- class CLastError
- {
- public:
- ~CLastError(void);
- HRESULT Init(LPCTSTR szComponent);
- // standard OLE or MAPI errors.
- HRESULT SetLastError(HRESULT hr);
- // our internal extended error codes or a non-standard string for OLE or MAPI errors
- // scFORM is one of the errors defined by MAKE_FOR_X_SCODE macro family
- HRESULT SetLastError(HRESULT hr, SCODE scFORM, ...);
- // errors returned from underlying objects.
- HRESULT SetLastError(HRESULT hr, IUnknown* punk);
- // our implementation of GetLastError
- HRESULT GetLastError(HRESULT hr, DWORD dwFlags,
- LPMAPIERROR * lppMAPIError);
- //displays the last error info
- int ShowError(HWND);
- private:
- // we have three possible error types: our internal errors which
- // we signify by MAPI_E_EXTENDED to the user, standard errors
- // defined by MAPI and errors returned by objects we keep and utilize.
- enum {eNoError, eExtended, eMAPI, eObject} _eLastErr;
- HRESULT _hrLast;
- HRESULT _hrGLE; // what GetLastError on the object returned; mostly 0
- LPMAPIERROR _pmapierr;
- LPSTR _szComponent;
- };
- #endif // __LASTERR_H__