找回密码
 加入
搜索
查看: 2840|回复: 0

[AU3基础] 如何呼叫C#做出来的dll ? (附上C# dll源码)

[复制链接]
发表于 2011-3-23 03:44:32 | 显示全部楼层 |阅读模式
小弟用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
拜托帮忙看下..

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 11:00 , Processed in 0.077526 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表