Python: Problems with functions of imported dll
<p>A DLL for a device was imported into Python using ctypes "windll.LoadLibrary"
First, I wanted to use one function of the DLL which is to return the library version.
There came a header file with the DLL in which the function is defined like this:</p>

<pre><code> /**  * \brief  Returns the library version in the format 'AA.BB.CC.DD'
 (e.g. '1.0.0.0').  *  *    OUTPUT PARAMETER  * \param      version        
 Version number of the library  */
 #ifdef __cplusplus extern "C" 
 #endif
     C3_DLL_API void JC_GetDllVersion(char *version);
</code></pre>

<p>I called the function with <code>print (str(c3dll.JC_GetDllVersion),"\n")</code>
But when I run the script I only get this output:</p>

<blockquote>
  <p>('&lt;_FuncPtr object at 0x01A187B0>', '\n')</p>
</blockquote>

<p>What am I doing wrong here?</p>

<p>So a colleague helped me:
The function "JC_GetDllVersion()" manipulates the paramter it gets handed over and doesn't return a string.
But as a beginner I wasn't aware of that.</p>

python dll import