dumpbin

使用VS从DLL中产生LIB文件

旧巷老猫 提交于 2019-12-05 08:00:59
来自:http://www.coderetard.com/2009/01/21/generate-a-lib-from-a-dll-with-visual-studio/ 工具:VS2010, VLC的libvlc.dll 1. 打开工具 Visual Studio Tools command promopt (Start -> All Programs-> Microsoft Visual Studio 2010 -> Visual Studio Tools -> Visual Studio Command Prompt). 2.生成 .def文件,如果Dll文件已经存在对应的.def文件,这一步可以省略。使用 dumpbin 命令生成对应的.def文件: dumpbin /exports libvlc.dll ,显示如下: 创建一个.def文件(我的是 libvlc.def), 编辑该文件,将上述红框内的函数名复制到该文件中,在首行中添加 EXPORTS ,如下图: 3.生成.lib。使用 visual studio command prompt命令窗口,执行如下命令: lib /def:libvlc.def /out:libvlc.lib /machine:x86 lib命令说明: usage: LIB [options] [files] options: /DEF[

What does UNDEF and notype() mean when seeing the C++ library information using dumpbin?

微笑、不失礼 提交于 2019-12-02 07:33:34
I used dumpbin /symbols to see the library I created. Some functions have UNDEF notype in the output. What does that mean? Is there any link to study the structure of dumpbin output? We can take a look at the MSDN documentation for dumpbin /SYMBOLS : This option displays the COFF symbol table. Symbol tables exist in all object files. A COFF symbol table appears in an image file only if it is linked with /DEBUG. The following is a description of the output for /SYMBOLS. Additional information on the meaning of /SYMBOLS output can be found by looking in winnt.h (IMAGE_SYMBOL and IMAGE_AUX_SYMBOL

Call function in c++ dll without header

白昼怎懂夜的黑 提交于 2019-11-29 03:39:37
I would like to call a method from an dll, but i don't have the source neither the header file. I tried to use the dumpbin /exports to see the name of the method, but i can found the methods signature? Is there any way to call this method? Thanks, It is possible to figure out a C function signature by analysing beginnig of its disassembly. The function arguments will be on the stack and the function will do some "pops" to read them in reverse order. You will not find the argument names, but you should be able to find out their number and the types. Things may get more difficult with return