请教大家一个问题,现在有个.dll文件.请问在c#中怎么调用
dll问件的说明如下:
void SoundCom(char* WavePath,char* TxtPath,char* WaveDPath)
WavePath-声音源文件路径
TxtPath-文本文件路径
WaveDPath-目标文件路径
希望各位指教

解决方案 »

  1.   

    [DllImport("你的.dll", EntryPoint="SoundCom")]
    public static extern void SoundCom(string WavePath,string TxtPath,string WaveDPath);试试这个
      

  2.   

    楼上正解。注:这里假设你的dll不是托管dll
      

  3.   

    在工程中添加引用DLL后,再在代码中引用命名空间下的类/方法
      

  4.   

    2楼正解,你得加上 using System.Runtime.InteropServices;