title: DLL export of a static function
body: <p>I have the following static function:</p>
  
  <pre><code>static inline HandVal
                StdDeck_StdRules_EVAL_N( StdDeck_CardMask cards, int n_cards )
  </code></pre>
  
  <p>Can I export this function in a DLL? If so, how?</p>
  
  <p>Thanks,</p>
  
  <p>Mike</p>
  
  <p>Background information:</p>
  
  <p>I'm doing this because the original source code came with a VS project designed to compile as a static (.lib) library. In order to use ctypes/Python, I'm converting the project to a DLL.</p>
  
  <p>I started a VS project as a DLL and imported the original source code. The project builds into a DLL, but none of the functions (including functions such as the one listed above) are exported (as confirmed by both the absence of dllexport in the source code and tools such as DLL Export Viewer). I tried to follow the general advice <a href="https://stackoverflow.com/questions/845183/convert-static-windows-library-to-dll">here</a> (create an exportable wrapper function within the header) to no avail...functions still don't appear to be exported.</p>