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 -

google shop client API returns 400 bad request error while adding an item -