菜鸟 求教 如何在vs下面使用一个外部的动态链接库?

Traitée 菜鸟 求教 如何在vs下面使用一个外部的动态链接库?

  • 2012年4月5日 13:31
     
     
    我想在vs下面使用一个动态链接库,只有一个librsvg.dll 的文件,能不能再vs下面用嗯,里面的api函数估计和winsows下面的用,如果能用的话怎么用?请写详细点。!谢谢!

全部回复

  • 2012年4月5日 14:16
    版主
     
     已答复

    参考LoadLibrary和GetProcAddr的用法,还需要一个工具叫 Dependency Walker

    在网上都有详细的介绍


    0xBAADF00D

  • 2012年4月5日 18:04
    版主
     
     已答复
    需要dll的头文件以获得参数个数和类型。


    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

  • 2012年4月6日 2:08
     
     已答复

    看看这个

    http://www.qudong.com/soft/program/C/rumenjiaocheng/20080424/9523.html


    新浪微博http://weibo.com/xianglitian,欢迎围观

  • 2012年4月18日 1:07
     
     
    嗯  谢谢  已经解决了 软件包里面有一个librsvg2.dll.a文件 其实就是.lib文件 之前不知道 !denpendency 确实很好用
  • 2012年4月18日 1:08
     
     
    嗯 谢谢你!
  • 2012年4月18日 1:09
     
     

    嗯 很有用!