title: Calling Delphi function in VC Project
body: <p>I created a function in delphi as below:
  <code>function CheckResult():integer; stdcall; export;</code></p>
  
  <p>The compiler is Delphi 64 and the output is CheckFunctions.dll</p>
  
  <p>Then
  in the VC++ project (VS 2012),
  I write:
  <code>extern "C" __declspec(dllimport) int __stdcall CheckResult();</code></p>
  
  <p>and use it in a function, then I get the compiler error in C++ project:</p>
  
  <blockquote>
    <p>error LINK2019: unresolved external symbol __imp_CheckResult referenced in function <strong>*</strong></p>
  </blockquote>
  
  <p>How can I do?
  Thanks</p>