D
DBfromMN
I'm trying to call unmanaged functions in a DLL from a C#
client program.
I've been over an over the tutorials and samples, but
still I'm missing something.
When one of these functions is called from the client
program, an unhandled exception is thrown stating that
there is no entry point in the dll by that name.
In the dll, I've qualified the function like this:
__declspec(dllexport) int iFunction(int);
In the client, I add this to a class
[DllImport("MyDll.dll")]
public static extern int iFunction(int iIn);
When I call the function, the dll is loaded, but the
iFunction name is not found.
Is there something else I need to do?
Thanks in advance.
Dennis
client program.
I've been over an over the tutorials and samples, but
still I'm missing something.
When one of these functions is called from the client
program, an unhandled exception is thrown stating that
there is no entry point in the dll by that name.
In the dll, I've qualified the function like this:
__declspec(dllexport) int iFunction(int);
In the client, I add this to a class
[DllImport("MyDll.dll")]
public static extern int iFunction(int iIn);
When I call the function, the dll is loaded, but the
iFunction name is not found.
Is there something else I need to do?
Thanks in advance.
Dennis