title: Calling Delphi stdcall function with pAnisChar from node js
body: <p>I have a legacy Delphi dll which requires a json string as input (pAnsiChar) and returns an int as success or failure. I have managed to connect to the dll from nodejs using node-ffi. However, i am getting return int value points to invalid json string.</p>
  
  <p>Could someone point me in the direction as to how to call a Delphi dll with pAnsiChar as function arguments from node</p>
  
  <p>Thanks  </p>