DLLDATAX.C
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- // wrapper for dlldata.c
- //
- // This is a part of the Microsoft Foundation Classes C++ library.
- // Copyright (C) 1992-1998 Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Microsoft Foundation Classes Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Microsoft Foundation Classes product.
- #ifdef _MERGE_PROXYSTUB // merge proxy stub DLL
- #define REGISTER_PROXY_DLL //DllRegisterServer, etc.
- #define _WIN32_WINNT 0x0400 //for WinNT 4.0 or Win95 with DCOM
- #define USE_STUBLESS_PROXY //defined only with MIDL switch /Oicf
- #pragma comment(lib, "rpcndr.lib")
- #pragma comment(lib, "rpcns4.lib")
- #pragma comment(lib, "rpcrt4.lib")
- #define DllMain PrxDllMain
- #define DllRegisterServer PrxDllRegisterServer
- #define DllUnregisterServer PrxDllUnregisterServer
- #define DllGetClassObject PrxDllGetClassObject
- #define DllCanUnloadNow PrxDllCanUnloadNow
- #include "dlldata.c"
- #include "stocktickerATL_p.c"
- #ifdef _NOPROXY //no midl generated dlldata.c
- #define STRICT 1
- #include <ole2.h>
- BOOL WINAPI PrxDllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
- {return TRUE;}
- STDAPI PrxDllCanUnloadNow(void){return S_OK;}
- STDAPI PrxDllGetClassObject(REFCLSID rclsid, REFIID riid, LPVOID* ppv)
- {return CLASS_E_CLASSNOTAVAILABLE;}
- STDAPI PrxDllRegisterServer(void){return S_OK;}
- STDAPI PrxDllUnregisterServer(void){return S_OK;}
- #endif //!PROXY_DELEGATION
- #endif //_MERGE_PROXYSTUB