从lib文件中导出函数定义

参考:

http://longzxr.blog.sohu.com/224418149.html

http://stackoverflow.com/questions/305287/how-to-see-the-contents-of-windows-library-lib


如下图所示,在Visual Studio中,Tools -> Visual Studio 2008 Commnd Prompt,弹出命令行界面


在弹出的命令行界面中,执行

dumpbin /exports the-lib-file-you-want-to-dump.lib


【示例】


d:\Program Files (x86)\Microsoft Visual Studio 9.0\vc\bin>dumpbin.exe /exports "D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib\mfcm9
0u.lib"
Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.




Dump of file D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib\mfcm90u.lib


File Type: LIBRARY


     Exports


       ordinal    name


           279    _InitMfcmDll
           281    _AfxmReleaseManagedReferences
           280    _AfxmEnsureManagedInitialization
           274    ?SetPropertyV@CWinFormsControlSite@MFC@VisualC@Microsoft@@UAEXJGPAD@Z (public: virtual void __thiscall Microsoft::VisualC::MFC::CWin
FormsControlSite::SetPropertyV(long,unsigned short,char *))
           273    ?PreTranslateMessage@CWinFormsView@MFC@VisualC@Microsoft@@MAEHPAUtagMSG@@@Z (protected: virtual int __thiscall Microsoft::VisualC::M
FC::CWinFormsView::PreTranslateMessage(struct tagMSG *))
           272    ?PreCreateWindow@CWinFormsView@MFC@VisualC@Microsoft@@MAEHAAUtagCREATESTRUCTW@@@Z (protected: virtual int __thiscall Microsoft::Visu
alC::MFC::CWinFormsView::PreCreateWindow(struct tagCREATESTRUCTW &))
           271    ?OnUpdate@CWinFormsView@MFC@VisualC@Microsoft@@MAEXPAVCView@@JPAVCObject@@@Z (protected: virtual void __thiscall Microsoft::VisualC:
:MFC::CWinFormsView::OnUpdate(class CView *,long,class CObject *))
           270    ?OnSize@CWinFormsView@MFC@VisualC@Microsoft@@IAEXIHH@Z (protected: void __thiscall Microsoft::VisualC::MFC::CWinFormsView::OnSize(un
signed int,int,int))
           269    ?OnInitialUpdate@CWinFormsView@MFC@VisualC@Microsoft@@MAEXXZ (protected: virtual void __thiscall Microsoft::VisualC::MFC::CWinFormsV
iew::OnInitialUpdate(void))
           276    ?OnHandleCreatedHandler@CWinFormsControlSite@MFC@VisualC@Microsoft@@QAEXXZ (public: void __thiscall Microsoft::VisualC::MFC::CWinFor
msControlSite::OnHandleCreatedHandler(void))
           268    ?OnHandleCreated@CWinFormsControlSite@MFC@VisualC@Microsoft@@UAEXU?$gcroot@P$AAVObject@System@@@@U?$gcroot@P$AAVEventArgs@System@@@@
@Z (public: virtual void __thiscall Microsoft::VisualC::MFC::CWinFormsControlSite::OnHandleCreated(struct gcroot<class System::Object ^>,struct gcroot
<class System::EventArgs ^>))
           267    ?OnCmdMsg@CWinFormsView@MFC@VisualC@Microsoft@@MAEHIHPAXPAUAFX_CMDHANDLERINFO@@@Z (protected: virtual int __thiscall Microsoft::Visu
alC::MFC::CWinFormsView::OnCmdMsg(unsigned int,int,void *,struct AFX_CMDHANDLERINFO *))
           266    ?OnActivateView@CWinFormsView@MFC@VisualC@Microsoft@@MAEXHPAVCView@@0@Z (protected: virtual void __thiscall Microsoft::VisualC::MFC:
:CWinFormsView::OnActivateView(int,class CView *,class CView *))
           265    ?GetThisMessageMap@CWinFormsView@MFC@VisualC@Microsoft@@KGPBUAFX_MSGMAP@@XZ (protected: static struct AFX_MSGMAP const * __stdcall M
icrosoft::VisualC::MFC::CWinFormsView::GetThisMessageMap(void))
           264    ?GetThisClass@CWinFormsView@MFC@VisualC@Microsoft@@SGPAUCRuntimeClass@@XZ (public: static struct CRuntimeClass * __stdcall Microsoft
::VisualC::MFC::CWinFormsView::GetThisClass(void))
           263    ?GetStyle@CWinFormsControlSite@MFC@VisualC@Microsoft@@UBEKXZ (public: virtual unsigned long __thiscall Microsoft::VisualC::MFC::CWin
FormsControlSite::GetStyle(void)const )
           262    ?GetRuntimeClass@CWinFormsView@MFC@VisualC@Microsoft@@UBEPAUCRuntimeClass@@XZ (public: virtual struct CRuntimeClass * __thiscall Mic
rosoft::VisualC::MFC::CWinFormsView::GetRuntimeClass(void)const )
           261    ?GetProperty@CWinFormsControlSite@MFC@VisualC@Microsoft@@UBEXJGPAX@Z (public: virtual void __thiscall Microsoft::VisualC::MFC::CWinF
ormsControlSite::GetProperty(long,unsigned short,void *)const )
           260    ?GetMessageMap@CWinFormsView@MFC@VisualC@Microsoft@@MBEPBUAFX_MSGMAP@@XZ (protected: virtual struct AFX_MSGMAP const * __thiscall Mi
crosoft::VisualC::MFC::CWinFormsView::GetMessageMap(void)const )
           259    ?DoVerb@CWinFormsControlSite@MFC@VisualC@Microsoft@@UAEJJPAUtagMSG@@@Z (public: virtual long __thiscall Microsoft::VisualC::MFC::CWi
nFormsControlSite::DoVerb(long,struct tagMSG *))
           258    ?CreateOrLoad@CWinFormsControlSite@MFC@VisualC@Microsoft@@UAEJABVCControlCreationInfo@@@Z (public: virtual long __thiscall Microsoft
::VisualC::MFC::CWinFormsControlSite::CreateOrLoad(class CControlCreationInfo const &))
           257    ?CreateControlCommon@CWinFormsControlSite@MFC@VisualC@Microsoft@@UAEJPAVCWnd@@ABU_GUID@@ABVCControlCreationInfo@@PB_WKPBUtagPOINT@@P
BUtagSIZE@@IPAVCFile@@HPA_W@Z (public: virtual long __thiscall Microsoft::VisualC::MFC::CWinFormsControlSite::CreateControlCommon(class CWnd *,struct
_GUID const &,class CControlCreationInfo const &,wchar_t const *,unsigned long,struct tagPOINT const *,struct tagSIZE const *,unsigned int,class CFile
 *,int,wchar_t *))
           256    ?Create@CWinFormsView@MFC@VisualC@Microsoft@@MAEHPB_W0KABUtagRECT@@PAVCWnd@@IPAUCCreateContext@@@Z (protected: virtual int __thiscal
l Microsoft::VisualC::MFC::CWinFormsView::Create(wchar_t const *,wchar_t const *,unsigned long,struct tagRECT const &,class CWnd *,unsigned int,struct
 CCreateContext *))


  Summary


           4 .CRTMP$XCB
           4 .CRTMP$XCY
          11 .bss
        11D0 .cormeta
          20 .data
        2043 .debug$S
         6BC .debug$T
          3C .drectve
          14 .idata$2
          14 .idata$3
           4 .idata$4
           4 .idata$5
           C .idata$6
          40 .rdata$ilfixup
          92 .text
          52 .text$yc
          39 .text$yd


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值