Windows error 0x80131523, -2146233053

Detailed Error Information

COR_E_ENTRYPOINTNOTFOUND[1]

Message"Could not find the specified DllImport entrypoint."
Comment Could not find the specified DllImport entry point

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code5411 (0x1523)

Questions

0votes
1answer

C# code can't "find" exported function in a DLL, Works in C++ test program

I created a C++ (native) DLL that exports one function and I'm trying to call in from C# (managed) code and I receive runtime error that the function name can't be found in my DLL. Here's the code of the DLL: #include "pch.h" #include "framework.h" #include "Device.h" // This is [...] read more
c#
c++
.net
pinvoke

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0