I joined a recent project that uses a nearby printer to print tax coupons.
The last one who worked on the project used a DLL (if I'm not mistaken in C ++) that managed the printer.
In the project, this DLL is imported through the following command:
[DllImport(@"C:\InfoSAT\ptptrpro.dll", CallingConvention = CallingConvention.Cdecl)]
private static extern Int32 SetProtocol(Int32 protocol);
When attempting to execute the imported method, I am thrown a System.DllNotFoundException
stating that the specified module could not be found.
I found this error curious because in the folder informed in Import has this DLL.
My guess is:
This DLL can be corrupted (difficult, but not impossible);
3 - Another thing I could not imagine.
Thanks to anyone who can help me.