it is too dificult for me to help you 
up

解决方案 »

  1.   

    LIB 文件还要分静态库文件还是动态库的LIB文件。如果是动态库的。找到相应的DLL,然后P/INVOKE调用。如果是静态库的,如果有源码就编译一下,编译为动态库,然后使用。
      

  2.   

    http://community.csdn.net/Expert/topic/3353/3353187.xml?temp=.4315149
      

  3.   

    如果不是用C++写的程序呢,是用某些软件自带的开发语言些的程序,那怎么调用呢!
    列如:SAP的ABAP开发的程序呢!
    呵呵,借贴一用!
      

  4.   

    用托管C++(VC++.NET)把那个lib里你想要的东西做成一个DLL,然后C#里添加引用
    或者,用VC++或其他C++的工具把那个LIB里的东西做成一个DLL(win32)
    然后象这样:
    [DllImport("KERNEL32.DLL", EntryPoint="MoveFileW",  SetLastError=true,
    CharSet=CharSet.Unicode, ExactSpelling=true,
    CallingConvention=CallingConvention.StdCall)]
    public static extern bool MoveFile(String src, String dst);System.Runtime.InteropServices.DllImportAttributewww.pinvoke.net
      

  5.   

    啊,用C++的编译器能编译ABAP4写的程序吗?
    不行吧!
      

  6.   

    我现在只有其他工具包捍供的lib,如何将lib做成一个DLL?