I have a .DLL file for x64 architecture without adequate documentation. I tried the following as a .NET Core Console App in Visual Studio 2017 adding the DLL as a reference:
Imports System
Module Program
Sub Main(args As String())
Dim newObject As NewNamespace.NewInterface
'Create New Instance
newObject = NewNamespace.Factory.Instance.Create()
'Do something
'Clean up
NewNamespace.Factory.Instance.Destroy()
End Sub
End Module
When I tried to run the code in Debug for X64 CPU I get the following error:
System.TypeInitializationException
EntryPointNotFoundException: A library name must be specified in a DllImport attribute applied to non-IJW methods.
EDIT: Removed a lot of unnecessary information
DllImportanywhere. Get rid of all that and open the Object Explorer window and see what types and members that indicates are accessible. - jmcilhinney