Q: I am using Zentitle Licensing (NSL) in my application. It works fine when I have the ShaferFileChck.dll in my bin folder. But I am trying to reference it in my main project but it gives the error.
A: The DLL is a C windows DLL, and won't work as a reference as its not a COM or .NET DLL.
If you look at our example applications you need to Load the Library in a dynamic way i.e. LoadLibrary or DLLImport etc
For Example in C#:
[DllImport("ShaferFilechck.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern int NalpLibOpen(byte[] XMLParms);
This defines the function and loads the library on calling.
If you using C# or VB.NET please see the example applications and possibly reuse the shafer.cs/vb class which has all the DLL functions defined