Hi,
I need to access a C# DLL, but can not get it to work. I have access to the C# source code and the author, having been trying for a couple of days and just cannot get it to work. Have tried compiling it both ways, so you use DECLARE (preferred method) or as a COM object so you have to register it and use CREATEOBJECT().
So we have just created a very simple DLL from an example online, DECLARE the functions in VFP, which show up when you DISPLAY STATUS, but when you call the function you get the 'Cannot find entry point' error. Have been googling it and can not see why it is not working.
Have checked it is being compiled as a 32 bit DLL, have checked naming as know they are case sensitive. Have used DECLARE before for Win DLL's without an issue, but will not work with this :-(
I need to access a C# DLL, but can not get it to work. I have access to the C# source code and the author, having been trying for a couple of days and just cannot get it to work. Have tried compiling it both ways, so you use DECLARE (preferred method) or as a COM object so you have to register it and use CREATEOBJECT().
So we have just created a very simple DLL from an example online, DECLARE the functions in VFP, which show up when you DISPLAY STATUS, but when you call the function you get the 'Cannot find entry point' error. Have been googling it and can not see why it is not working.
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Calculation
{
publc class calculate
{
//Method used for Addition
public int Add(int a,int b)
{
return a + b;
}
//Method used for Substraction
public int Sub(int a,int b)
{
return a - b;
}
}
}
Have checked it is being compiled as a 32 bit DLL, have checked naming as know they are case sensitive. Have used DECLARE before for Win DLL's without an issue, but will not work with this :-(