• 大小: 8.49MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-21
  • 语言: C/C++
  • 标签: 图片缩放  

资源简介

实现了图片预览和缩放功能

资源截图

代码片段和文件信息

// ShowPicture.cpp : Defines the initialization routines for the DLL.
//

#include “stdafx.h“
#include 

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


static AFX_EXTENSION_MODULE ShowPictureDLL = { NULL NULL };

extern “C“ int APIENTRY
DllMain(HINSTANCE hInstance DWORD dwReason LPVOID lpReserved)
{
// Remove this if you use lpReserved
UNREFERENCED_PARAMETER(lpReserved);

if (dwReason == DLL_PROCESS_ATTACH)
{
TRACE0(“SHOWPICTURE.DLL Initializing!\n“);

// Extension DLL one-time initialization
if (!AfxInitExtensionModule(ShowPictureDLL hInstance))
return 0;

// Insert this DLL into the resource chain
// NOTE: If this Extension DLL is being implicitly linked to by
//  an MFC Regular DLL (such as an ActiveX Control)
//  instead of an MFC application then you will want to
//  remove this line from DllMain and put it in a separate
//  function exported from this Extension DLL.  The Regular DLL
//  that uses this Extension DLL should then explicitly call that
//  function to initialize this Extension DLL.  Otherwise
//  the CDynlinkLibrary object will not be attached to the
//  Regular DLL‘s resource chain and serious problems will
//  result.

new CDynlinkLibrary(ShowPictureDLL);
}
else if (dwReason == DLL_PROCESS_DETACH)
{
TRACE0(“SHOWPICTURE.DLL Terminating!\n“);
// Terminate the library before destructors are called
AfxTermExtensionModule(ShowPictureDLL);
}
return 1;   // ok
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-01-22 22:18  ShowPicture\
     目录           0  2017-01-22 22:18  ShowPicture\Debug\
     文件      106549  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.dll
     文件        3142  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.exp
     文件      140672  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.ilk
     文件        5920  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.lib
     文件        7301  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.obj
     文件     6610120  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.pch
     文件      246784  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.pdb
     文件         936  2014-09-19 11:26  ShowPicture\Debug\ShowPicture.res
     文件       20544  2014-09-19 11:26  ShowPicture\Debug\ShowPictureDlg.obj
     文件      117622  2014-09-19 11:26  ShowPicture\Debug\StdAfx.obj
     文件      238592  2014-09-19 11:27  ShowPicture\Debug\vc60.idb
     文件      413696  2014-09-19 11:26  ShowPicture\Debug\vc60.pdb
     文件        2533  2014-09-18 17:57  ShowPicture\ReadMe.txt
     目录           0  2017-01-22 22:18  ShowPicture\Release\
     文件       24576  2014-09-19 11:26  ShowPicture\Release\ShowPicture.dll
     文件        3144  2014-09-19 11:26  ShowPicture\Release\ShowPicture.exp
     文件        5920  2014-09-19 11:26  ShowPicture\Release\ShowPicture.lib
     文件        2110  2014-09-19 11:26  ShowPicture\Release\ShowPicture.obj
     文件     6709252  2014-09-19 11:26  ShowPicture\Release\ShowPicture.pch
     文件         936  2014-09-19 11:26  ShowPicture\Release\ShowPicture.res
     文件       18816  2014-09-19 11:26  ShowPicture\Release\ShowPictureDlg.obj
     文件         866  2014-09-19 11:26  ShowPicture\Release\StdAfx.obj
     文件       58368  2014-09-19 11:27  ShowPicture\Release\vc60.idb
     文件       18444  2015-11-02 16:40  ShowPicture\ShowPicture.aps
     文件         555  2015-11-02 16:41  ShowPicture\ShowPicture.clw
     文件        1568  2014-09-18 17:57  ShowPicture\ShowPicture.cpp
     文件         199  2014-09-18 17:57  ShowPicture\ShowPicture.def
     文件      106549  2014-09-19 11:26  ShowPicture\ShowPicture.dll
     文件        4305  2014-09-18 18:04  ShowPicture\ShowPicture.dsp
............此处省略56个文件信息

评论

共有 条评论