Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • 1
    ok,I have change the code and the problem is solved.thanks very much. Commented May 3, 2013 at 6:55
  • 2
    It won't work as the "HelloWorld" in the dynamic library is mangled. Commented Oct 1, 2014 at 15:40
  • @mjb Do you actually need the "EntryPoint " or is it implicit? I have seen code that do not use it. Is that a bad thing? Commented Jan 10, 2020 at 15:40
  • 1
    @progLearner, "You can use the DllImportAttribute.EntryPoint field to specify a DLL function by name or ordinal. If the name of the function in your method definition is the same as the entry point in the DLL, you do not have to explicitly identify the function with the EntryPoint field." learn.microsoft.com/en-us/dotnet/framework/interop/… Commented Dec 14, 2021 at 17:42