python - Importing #defines, constants and typedefs from a DLL using ctypes -


i have dll board bought stuff, , defines functions, constants , types. have imported python using ctypes. however, import not have access defined constants. instance, if need call function:

mydll = ctypes.cdll.loadlibrary("path/to/dll/parrot.dll")  spam = mydll.eggs(this_constant) #this_constant defined in dll 

then cannot it. there way have access these constants?

#define not accessible dll. indeed, definition expanded preprocessor before compiler starts work. there no way dll remember name under defined.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -