自己在用其它人写的控件或动态链接库时经常会有“ActiveX 部件不能创建XX对象”的错误提示,请问有没有能看到调用了什么控件或动态链接库的工具

解决方案 »

  1.   

    depends view 
    visual stdio 自带的工具。
      

  2.   

    eXeScope之类的PE文件查看器,网上很多的。
      

  3.   

    支持上说的。你在 www.baidu.com 搜一下eXeScope就好好的
      

  4.   

    这个也不行啊,我说的意思是:
    比如有一个应用程序GDEL.Exe,该程序用到了一个自己写的Dll文件,比如说JYH.Dll;我现在想找个工具可以查了出GDEL.Exe中调用了JYH.Dll……应该有这种软件的吧,帮帮忙哦……
      

  5.   

    使用 Visual Studio 带的 dumpbin.exe 吧。Microsoft (R) COFF Binary File Dumper Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.usage: DUMPBIN [options] [files]   options:      /ALL
          /ARCH
          /ARCHIVEMEMBERS
          /DEPENDENTS
          /DIRECTIVES
          /DISASM
          /EXPORTS
          /FPO
          /HEADERS
          /IMPORTS
          /LINENUMBERS
          /LINKERMEMBER[:{1|2}]
          /LOADCONFIG
          /OUT:filename
          /PDATA
          /RAWDATA[:{NONE|BYTES|SHORTS|LONGS}[,#]]
          /RELOCATIONS
          /SECTION:name
          /SUMMARY
          /SYMBOLS其中 /IMPORTS 表示察看文件所使用的dll及调用的函数。
      

  6.   

    例如:在command窗口中输入:dumpbin /imports c:\windows\notepad.exeMicrosoft (R) COFF Binary File Dumper Version 6.00.8447
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    Dump of file c:\winnt\notepad.exeFile Type: EXECUTABLE IMAGE  Section contains the following imports:    comdlg32.dll
                   10012D4 Import Address Table
                   10069D8 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      76B06A22     6  FindTextW
          76B02647     C  GetSaveFileNameW
          76AFDB9E     A  GetOpenFileNameW
          76B0FC5F    12  PrintDlgExW
          76B06A32    15  ReplaceTextW
          76AF16E2     8  GetFileTitleW
          76B06F71     3  ChooseFontW
          76B0ACC2     F  PageSetupDlgW
          76B01D9C     4  CommDlgExtendedError    SHELL32.dll
                   1001194 Import Address Table
                   1006898 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      77598158    17  DragQueryFileW
          775FAAD6    13  DragFinish
          775D2ECF    82  ShellAboutW
          77567E4E    12  DragAcceptFiles    MSVCRT.dll
                   1001144 Import Address Table
                   1006848 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      78001DEA   10C  _initterm
          78003E70    58  __getmainargs
          78003E6A    69  __p__commode
          7800B426    82  __setusermatherr
          7803BB70    9B  _adjust_fdiv
          78003C1E    B4  _controlfp
          78003E64    6E  __p__fmode
          78003E5A    80  __set_app_type
          7803B508    8D  _acmdln
          78028F1D   2E5  wcsncmp    ADVAPI32.dll
                   1001000 Import Address Table
                   1006704 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      77DA4F85   108  IsTextUnicode
          77D990B0   18A  RegCreateKeyW
          77D98078   1A8  RegQueryValueExW
          77D99348   1B3  RegSetValueExW
          77D982AC   19D  RegOpenKeyExA
          77D9858E   1A7  RegQueryValueExA
          77D97D4D   184  RegCloseKey    KERNEL32.dll
                   1001080 Import Address Table
                   1006784 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      77E79F42   1EF  LocalUnlock
          77E6B7F4   1AE  GlobalUnlock
          77E6CCA3   1A7  GlobalLock
          77E6668C   12D  GetLastError
          77E7C4E4   29C  SetLastError
          77E78023   1DF  LoadLibraryA
          77E6AAB8   32D  lstrcmpiW
          77E65FCC    C9  GetACP
          77E7869D   1EC  LocalReAlloc    GDI32.dll
                   1001020 Import Address Table
                   1006724 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      77F4308B   20D  TextOutW
          77F4B726   204  StartDocW
          77F45946   12D  GetDeviceCaps
          77F4182D   1CE  SelectObject
          77F42348   1D5  SetBkMode
          77F42FAA   17F  GetTextMetricsW
          77F4A3F0    2D  CreateDCW
          77F45609   159  GetObjectW
          77F41710   167  GetStockObject
          77F629F7    93  EnumFontsW
          77F45902   17D  GetTextFaceW    USER32.dll
                   10011A8 Import Address Table
                   10068AC Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      77DFFC28   18D  IsDialogMessageW
          77DF2E6C   131  GetMessageW
          77E14584   1E5  PostQuitMessage
          77DFD01C   24C  SetScrollPos
          77DF5B94   296  UpdateWindow
          77DFE395   1B0  LoadStringW
          77DF7574   15F  GetWindowPlacement
          77DFE0FF   1A1  LoadCursorW
          77DFF21D   205  RegisterWindowMessageW
          77DFD09D    32  CharUpperW
          77DF7181   26F  ShowWindow
          77DF4D06    F3  GetClientRect
          77E0030B   25F  SetWindowPlacement
          77DF7D01    5B  CreateWindowExW    WINSPOOL.DRV
                   10012C4 Import Address Table
                   10069C8 Import Name Table
                  FFFFFFFF time date stamp
                  FFFFFFFF Index of first forwarder reference      777C4EE4    78  GetPrinterDriverW
          777C4A72    7D  OpenPrinterW
          777C45CC    1B  ClosePrinter  Header contains the following bound import information:
        Bound to comdlg32.dll [385A5D7C] Fri Dec 17 23:57:48 1999
        Bound to SHELL32.dll [38513504] Sat Dec 11 01:14:44 1999
        Bound to MSVCRT.dll [37F2C227] Thu Sep 30 09:51:35 1999
        Bound to ADVAPI32.dll [385134FE] Sat Dec 11 01:14:38 1999
        Bound to KERNEL32.dll [385134FE] Sat Dec 11 01:14:38 1999
        Bound to GDI32.dll [382BD384] Fri Nov 12 16:44:52 1999
        Bound to USER32.dll [385134FE] Sat Dec 11 01:14:38 1999
        Bound to WINSPOOL.DRV [38513503] Sat Dec 11 01:14:43 1999  Summary        2000 .data
            6000 .rsrc
            7000 .text
      

  7.   

    exescope
    resource hacker
    都行
      

  8.   

    为什么这些工具都只能查到对系统DLL的调用,而查不到对自己编写的DLL或Ocx的调用啊……
      

  9.   

    使用 dumpbin.exe 没有问题啊
      

  10.   

    我用了,只能看到对系统DLL的调用看不到对自己写的Dll或控件的调用啊而且我也看了你上面的查出来的都是系统的DLL