title: python having issue to load dll
body: <p>I have confirmed: MSFTFTCJTAG.dll exists in C:\ddey_documents. Having issue in loading it. Any help?</p>
  <pre><code>import os
  from ctypes import *
  os.chdir(r'c:\ddey_documents')
  Flywatter2 = WinDLL(r&quot;C:\ddey_documents\MSFTFTCJTAG.dll&quot;)
  </code></pre>
  <p>Error:</p>
  <pre><code>File &quot;C:\Python39\lib\ctypes\__init__.py&quot;, line 374, in __init__
      self._handle = _dlopen(self._name, mode)
  FileNotFoundError: Could not find module 'C:\ddey_documents\MSFTFTCJTAG.dll' (or one of its dependencies). Try using the full path with constructor syntax.
  </code></pre>
  <p>Things I have tried:</p>
  <ol>
  <li><p>tried adding following without help:
  <code>os.add_dll_directory(r&quot;C:\ddey_documents)</code></p>
  </li>
  <li><p>Was getting following error initially, <code>OSError: [WinError 193] %1 is not a valid Win32 application.</code> It got fixed by applying following two steps:</p>
  <ul>
  <li>swtiching to Python 32 bit version. <a href="https://stackoverflow.com/questions/62337501/oserror-winerror-193-1-is-not-a-valid-win32-application-nltk">OSError: [WinError 193] %1 is not a valid Win32 application - nltk</a></li>
  <li>Installing plugins: <a href="https://www.microsoft.com/en-us/download/details.aspx?id=40784" rel="nofollow noreferrer">https://www.microsoft.com/en-us/download/details.aspx?id=40784</a></li>
  </ul>
  </li>
  </ol>