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
FwCommon.h
Package: SwordOnline.rar [view]
Upload User: dzyhzl
Upload Date: 2019-04-29
Package Size: 56270k
Code Size: 2k
Category:
Game Server Simulator
Development Platform:
C/C++
- //***************************************************************************
- //
- // Copyright (c) 1996-2001 Microsoft Corporation, All Rights Reserved
- //
- // FWcommon.h
- //
- // Purpose: Definition of EventProvider class
- //
- //***************************************************************************
- #if _MSC_VER > 1000
- #pragma once
- #endif
- #define FRAMEWORK_ALLOW_DEPRECATED 0
- // ALWAYS INCLUDE THIS FILE FIRST!
- #ifndef _FW_COMMON_H_
- #define _FW_COMMON_H_
- // move warnings to level four
- #pragma warning(4 : 4275 4800 4786 4251)
- // C4275: non DLL-interface classkey 'identifier' used as base for DLL-interface classkey 'identifier'
- // C4800: forcing bool variable to one or zero, possible performance loss
- // C4786: 'identifier' : identifier was truncated to 'number' characters in the debug information
- // C4251: 'identifier' : class 'type' needs to have dll-interface to export class 'type2'
- #include "windows.h"
- // This function gets macro'ed to GetObjectW and GetObjectA based on the
- // contents of UNICODE. However, we USE a function called GetObject. For
- // single binary support, we can't have this being macro'ed. If the actual
- // win32 api GetObject is needed, call the GetObjectW or GetObjectA directly.
- #undef GetObject
- #include <wbemidl.h>
- #include <wmiutils.h>
- // If USE_POLARITY not defined, some Framedyn.dll symbols may not resolve correctly
- // It's a declspec(dllimport/dllexport) issue.
- #ifndef USE_POLARITY
- // For most users, this is the correct setting for POLARITY.
- #define USE_POLARITY
- #endif
- // Required since TCHAR.H defines _ttoi64 -> atoi64, which requires oldnames.lib, which
- // we don't use.
- #define atoi64 _atoi64
- #include <Polarity.h>
- #undef _CRTIMP
- #define _CRTIMP POLARITY
- #include <yvals.h>
- #undef _CRTIMP
- #include <stllock.h>
- extern POLARITY CCritSec g_cs;
- #include "utillib.h"
- #include "ThrdBase.h"
- #include "RefPtrCo.h"
- #include "MethodCo.h"
- #include "FRQuery.h"
- #include "wbemglue.h"
- #include "instance.h"
- class CFramework_Exception
- {
- private:
- CHString m_sErrorText;
- HRESULT m_hr;
- public:
- CFramework_Exception ( LPCWSTR lpwszErrorText, HRESULT hr) : m_hr ( hr ) , m_sErrorText ( lpwszErrorText) {}
- CFramework_Exception ( LPCWSTR lpwszErrorText) : m_hr ( WBEM_S_NO_ERROR ) , m_sErrorText ( lpwszErrorText) {}
- ~CFramework_Exception () {}
- HRESULT GetHRESULT() { return m_hr ; }
- CHString &GetErrorText() { return m_sErrorText; }
- } ;
- #endif