⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 convdllc.h

📁 c语言编程软件vc6.0中文绿色版_vc6.0官方下载
💻 H
字号:
// --convdllc.h----------------------------------------------------------------
//
// Conversion DLL cache object header file.
//
// Copyright (C) Microsoft Corp., 1986-1996.  All rights reserved.
//
// ----------------------------------------------------------------------------

#ifndef _CONVDLLC_H
#define _CONVDLLC_H

//$--CDllCache-----------------------------------------------------------------
//
// Object to maintain cache of most frequently used conversion
// DLLs
//
//-----------------------------------------------------------------------------

// Constants

// maximum number of cached DLLs maintained
const UINT nCachedDlls  =   1024;

class CDllCache
{
public:

    CDllCache();        // constructor
    ~CDllCache();       // destructor

    // Loads the DLL and saves in the cache
    HRESULT HrAdd(
        IN LPWSTR lpwszDllName);    // name of DLL to load and add

    // Finds handle of DLL in the cache
    HRESULT HrFind(
        IN LPWSTR lpwszDllName,     // name of DLL to find
        OUT HINSTANCE * phInst);    // pointer to DLL instance handle

private:

    // structure for cached DLL entries
    struct SDllCache
    {
        WCHAR lpwszName[MAX_PATH + 1];  // DLL name
        HINSTANCE   hInst;      // DLL instance handle
    };

    // array of pointers to cached DLLs
    SDllCache * m_rgSDllCache[nCachedDlls];

};

#endif  // _CONVDLLC_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -