I have a C# .dll that interfaces with the API of a large external progam.
That program expects an entry point function in the dll with the form:
extern void entrypoint(
char * a,
int * b,
int c);
It doesn’t find this and complains.
The original/default entry point for my dll is just:
public static void Main(string[] args)
I’ve tried creating a function like
public static void entrypoint(char a, int b, int c)
But it’s obviously not that simple. I’ve seen a bunch of stuff about how to do this in C++ with __declspec(dllexport), and I’ve seen a few complex/hacky solutions for C#, but it seems like there ought to be a straightforward way to do it. Any ideas?
If your external system is COM based, there are ways to do this, as .NET is a COM object under the covers.
Erick