这是C#写的dll
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; namespace Dlltest
{
public class DllClass
{
public int add(int a, int b)
{
return a * b;
}
}
}
现在我要在delphi中调用DllClass类的add方法,什么调用
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; namespace Dlltest
{
public class DllClass
{
public int add(int a, int b)
{
return a * b;
}
}
}
现在我要在delphi中调用DllClass类的add方法,什么调用
2 delphi使用CreateOLEObject()调用即可
3 注意安装framework啊
要调用的函数;stdcall;external ’函数所在的文件及路径’;