Answer the question
In order to leave comments, you need to log in
How to solve the problem: "Cannot find entry point '_add' in DLL"?
Hello!
Let me just say that I googled. And nothing helped. I need help specifically in my case.
There is a library written in C++. It needs to be imported from a C# project.
I do it in the following way:
[DllImport(
@"\\psf\iCloud\Education\C++ Lessons\ValidationDLL\Release\ValidationDLL.dll",
EntryPoint = "_add",
CharSet = CharSet.Ansi,
CallingConvention = CallingConvention.Cdecl
)]
public static extern double add(double a, double b);
add(4, 7);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question