Jump to content

Call a function in a shared library: Difference between revisions

Line 450:
 
=={{header|Python}}==
Example that call User32.dll::GetDoubleClickTime() in windows.
The import statement can be done in a try/except block
<lang python>try:
import psycoctypes
psyco.full()
user32_dll = ctypes.cdll.LoadLibrary('User32.dll')
print "# With psyco JIT compiler"
print user32_dll.GetDoubleClickTime()
except:
</lang>
print "# Without psyco JIT compiler"
 
# Rest of program</lang>
 
=={{header|Ruby}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.