title: Can't find DLL entry point
body: <p>I have been trying to call a DLL function in my VBA project but I keep getting this error message:</p>
  
  <p><code>Run-time error '453': Can't find DLL entry point "CheckStatus" in "Power.dll"</code></p>
  
  <p>Here is the definition for the DLL in the C++ file:</p>
  
  <p><code>#define CLASS_DECLSPEC   extern "C"  __declspec(dllexport)</code></p>
  
  <p><code>CLASS_DECLSPEC int __stdcall CheckStatus();</code></p>
  
  <p>And here is how I'm trying to declare it and call it in VBA:</p>
  
  <pre><code>Public Declare Function CheckStatus Lib "Power.DLL" () As Long
  
  Dim test As Long
  test = CheckStatus
  </code></pre>
  
  <p>And then when I run it received the aforementioned error message.</p>
  
  <p>Does anyone know how to fix this? Thanks.</p>