title: code exited -1073741515 (0xc0000135) 'A dependent dll was not found'
body: <p>I am trying to write a simple program. Vs 2019, Windows 10 64bits</p>
  
  <p>Debug->x64</p>
  
  <p>Followed [Configure Visual C++ Projects to Target 64-Bit Platforms][1]</p>
  
  <pre><code>#include &lt;windows.h&gt;
  #include "res/resource.h"
  #include &lt;iostream&gt;
  #include &lt;core_api/lsproject.h&gt;
  #include &lt;core_api/lslocalworkspace.h&gt;
  #include &lt;plugin_api/lsscenecontext.h&gt;
  using namespace SCENE_API;
  using namespace std;
  #include &lt;Commdlg.h&gt;
  
  
  int main()
  {       
  
      LSString filePath;    
  
      std::cout &lt;&lt; "Hello World!\n";
  }
  </code></pre>
  
  <p>Where [LSString][2] can be found here.</p>
  
  <p>I am getting an error:</p>
  
  <pre><code>The program '[11460] FAPPS.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
  </code></pre>
  
  <p>-------------------EDITED--------------------------------------------------</p>
  
  <p>After running the executable in debug mode in visual studio, I am getting</p>
  
  <pre><code>'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\myfirstapp1.exe'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\comdlg32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'E:\VS_Programm\FARO_SCENE\myfirstapp1\x64\Debug\Core_API.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\windows.storage.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\profapi.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'. 
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'. Symbols loaded.
  'myfirstapp1.exe' (Win32): Loaded 'C:\Windows\System32\cryptsp.dll'. Symbols loaded.
  The thread 0x64c0 has exited with code -1073741515 (0xc0000135).
  The thread 0x6604 has exited with code -1073741515 (0xc0000135).
  The thread 0x644 has exited with code -1073741515 (0xc0000135).
  The program '[25976] myfirstapp1.exe' has exited with code -1073741515 (0xc0000135) 'A dependent dll was not found'.
  </code></pre>