“Unable to find an entry point named [function] in dll” (c++ to c# type conversion)
First make sure the function is actually exported:
In the Visual Studio Command Prompt, use dumpbin /exports whatever.dll
DUMPBIN Reference
The Microsoft COFF Binary File Dumper (DUMPBIN.EXE) displays information about Common Object File Format (COFF) binary files. You can use DUMPBIN to examine COFF object files, standard libraries of COFF objects, executable files, and dynamic-link libraries (DLLs).
Note
You can start this tool only from the Visual Studio command prompt. You cannot start it from a system command prompt or from File Explorer.
Linker Tools Error LNK1181
cannot open input file 'filename'
The linker could not find filename
because it does not exist or the path was not found.
Some common causes for error LNK1181 include:
-
filename
is referenced as an additional dependency on the linker line, but the file does not exist. -
A /LIBPATH statement that specifies the directory containing
filename
is missing.
To resolve the above issues, ensure any files referenced on the linker line are present on the system. Also ensure there is a /LIBPATH statement for each directory containing a linker-dependent file.
修正命令为 dumpbin /exports .whatever.dll