• <i id='hIAGF'><tr id='hIAGF'><dt id='hIAGF'><q id='hIAGF'><span id='hIAGF'><b id='hIAGF'><form id='hIAGF'><ins id='hIAGF'></ins><ul id='hIAGF'></ul><sub id='hIAGF'></sub></form><legend id='hIAGF'></legend><bdo id='hIAGF'><pre id='hIAGF'><center id='hIAGF'></center></pre></bdo></b><th id='hIAGF'></th></span></q></dt></tr></i><div id='hIAGF'><tfoot id='hIAGF'></tfoot><dl id='hIAGF'><fieldset id='hIAGF'></fieldset></dl></div>

    <small id='hIAGF'></small><noframes id='hIAGF'>

        <bdo id='hIAGF'></bdo><ul id='hIAGF'></ul>

      <tfoot id='hIAGF'></tfoot>

      1. <legend id='hIAGF'><style id='hIAGF'><dir id='hIAGF'><q id='hIAGF'></q></dir></style></legend>

        在没有标题的c ++ dll中调用函数

        Call function in c++ dll without header(在没有标题的c ++ dll中调用函数)

          <legend id='UIBXd'><style id='UIBXd'><dir id='UIBXd'><q id='UIBXd'></q></dir></style></legend>

            <tbody id='UIBXd'></tbody>

            <bdo id='UIBXd'></bdo><ul id='UIBXd'></ul>
            <i id='UIBXd'><tr id='UIBXd'><dt id='UIBXd'><q id='UIBXd'><span id='UIBXd'><b id='UIBXd'><form id='UIBXd'><ins id='UIBXd'></ins><ul id='UIBXd'></ul><sub id='UIBXd'></sub></form><legend id='UIBXd'></legend><bdo id='UIBXd'><pre id='UIBXd'><center id='UIBXd'></center></pre></bdo></b><th id='UIBXd'></th></span></q></dt></tr></i><div id='UIBXd'><tfoot id='UIBXd'></tfoot><dl id='UIBXd'><fieldset id='UIBXd'></fieldset></dl></div>
            <tfoot id='UIBXd'></tfoot>
            1. <small id='UIBXd'></small><noframes id='UIBXd'>

                • 本文介绍了在没有标题的c ++ dll中调用函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我想从 dll 调用方法,但我没有源文件和头文件.我尝试使用dumpbin/exports 查看方法名称,但我可以找到方法签名?

                  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?

                  谢谢,

                  推荐答案

                  可以通过分析反汇编的开始来找出 C 函数的签名.函数参数将在堆栈中,并且函数将执行一些弹出"操作以相反的顺序读取它们.您不会找到参数名称,但您应该能够找到它们的编号和类型.返回值可能会变得更加困难 - 它可能通过eax"寄存器或通过作为最后一个伪参数传递给函数的特殊指针(在堆栈顶部).

                  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 value - it may be via 'eax' register or via a special pointer passed to the function as the last pseudo-argument (on the top of the stack).

                  这篇关于在没有标题的c ++ dll中调用函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?(静态库、静态链接动态库和动态链接动态库的 .lib 文件里面是什么?)
                  How do I load a C DLL from the SXS in Python?(如何从 Python 中的 SXS 加载 C DLL?)
                  Can Cython code be compiled to a dll so C++ application can call it?(Cython 代码可以编译成 dll 以便 C++ 应用程序可以调用它吗?)
                  Delay Loading DLLs(延迟加载 DLL)
                  Throwing C++ exceptions across DLL boundaries(跨 DLL 边界抛出 C++ 异常)
                  Loading a dll from a dll?(从 dll 加载 dll?)
                  <legend id='nSfNW'><style id='nSfNW'><dir id='nSfNW'><q id='nSfNW'></q></dir></style></legend>

                    <tbody id='nSfNW'></tbody>

                        <i id='nSfNW'><tr id='nSfNW'><dt id='nSfNW'><q id='nSfNW'><span id='nSfNW'><b id='nSfNW'><form id='nSfNW'><ins id='nSfNW'></ins><ul id='nSfNW'></ul><sub id='nSfNW'></sub></form><legend id='nSfNW'></legend><bdo id='nSfNW'><pre id='nSfNW'><center id='nSfNW'></center></pre></bdo></b><th id='nSfNW'></th></span></q></dt></tr></i><div id='nSfNW'><tfoot id='nSfNW'></tfoot><dl id='nSfNW'><fieldset id='nSfNW'></fieldset></dl></div>

                            <bdo id='nSfNW'></bdo><ul id='nSfNW'></ul>

                            <small id='nSfNW'></small><noframes id='nSfNW'>

                            <tfoot id='nSfNW'></tfoot>