I can't get my C# dll to work, i've done all the necessary stuff (i think) to get my functions exported.
code:
namespace Effection
{
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
public interface iFunctions
{
[DispId(1)]
string ReturnAye();
}
[ClassInterface(ClassInterfaceType.None)]
[ProgId("Effection.MyFunctions")]
public class MyFunctions : iFunctions
{
public string ReturnAye()
{
return "Aye";
}
}
}
code:
var path = MsgPlus.ScriptFilesPath+"\\Functions.dll";
Interop.Call2(path,"ReturnAye");
this fails on the Interop Call