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

css - I want to align grid in center -

python - SWIG function not printing output -

Contact Form PHP Email Script -