Quantcast
Channel: SharpDevelop Community
Viewing all articles
Browse latest Browse all 1764

How to use ctypes in IronPython ?

$
0
0

Hi all,

I am using sharpdevelop version  4.4.1.9729-7196a277. My IronPython version is 2.7.5.  I have 2 questions to ask.

1. I can't use ctypes in Sharpdevelop. But i can in IronPython console and even in visual studio(2013). When i type "import ctypes" SharpDevelop shows me an intellisence item "_ctypes" and "_ctypes_test".

 This is the worked code in visual studio

sd = ctypes.windll.LoadLibrary("kernel32.dll")
sd.Beep(500,1000)
And this is the code worked in IronPython console.
ctypes.windll.kernel32.Beep(500,1000)
Both were using import ctypes and working perfectly.
But i can't use this method in #develop. 
2. Which latest SharpDevelop version which supports IronPython's latest version aka 2.7.5 ?

Viewing all articles
Browse latest Browse all 1764

Trending Articles