Hi,
A vendor sent me a DLL to interface with an IOBoard.
It turns out that I've "registered" the DLL in the project's References but I can't use its functions because they all say they don't exist.
I can't even see the features
in the object browser (as I can see the other DLL's).
I've been looking at the original C# project that the vendor sent me and they have a class where they have the functionalities defined. I don't know if this will be the solution.
I've also tried converting the instructions of this class but it gives me an error.
What they have is:
[DllImport("C:\\\\Users\\\\utilizador\\\\Downloads\\\\DLL_AcronymV4\\\\DLL\\\\Acronym.dll")]
public static extern int CloseTerminal(ref object vTemplate);
After conversion give me this:
method-id CloseTerminal (reference vTemplate as object) returning return-value as binary-long
attribute DllImport("C:\\Users\\utilizador\\Downloads\\DLL_AcronymV4\\DLL\\Acronym.dll") static extern
attribute DllImport("C:\\Users\\utilizador\\Downloads\\DLL_AcronymV4\\DLL\\Acronym.dll").
end method.
Gives compilation error:
Erro COBCH0937 Attribute 'System.Runtime.InteropServices.DllImportAttribute' not allowed in this context IOBoard3_V1 C:\\Users\\utilizador\\source\\repos\\IOBoard3_V1\\Acronym.cbl 14
Thanks again for your help.
Best regards
Alberto Ferraz



