tts 发表于 2011-3-23 03:44:32

如何呼叫C#做出来的dll ? (附上C# dll源码)

小弟用C#做了个dll
但是一直无法成功在AU3中呼叫出来

C#代码:using System;
using System.Collections.Generic;
using System.Text;

namespace ClassLibrary1
{
    public class Class1
    {
      public int mySin(int intNum)
      {
            int dNum = 0;
            dNum = intNum * 5;
            return dNum;
      }

    }
}确认此dll可在C#中正常使用

AU3代码:
$abc=DllCall("ClassLibrary1.dll", "int", "mySin", "int", "20")
返回值是3...蛋疼

附上该dll
拜托帮忙看下..
页: [1]
查看完整版本: 如何呼叫C#做出来的dll ? (附上C# dll源码)