Ok so, I began programming my own game using the Blender Game engine which is written in python but allows you to design the 3d images, apply them to the game and write the script all in one program, but it is all in python. Which is unfortunate for me because all of my experience is in C++, but I can make DLLs no problem that allow me to simply call the functions that i wrote in C++ in the python script, But i wanted to see if there was a way to call extern "C" functions using python, and how exactly to get the procedure address in python, it is prefered that all of this be done with the basic script and not a system-dependant library (I want the game to be multiple platforms)
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Load a C++ DLL in python, functions using extern "C"
Featured Sponsors
Recent Reviews
-
All in all great cooler for the money and has always worked reliably. Excellent for a backup cooling system or for low-cost budget computers, while still being able to overclock.
-
I've used this headset extensively for MAG on PS3. The sounds were wonderful, the mic was crisp, and the ability to adjust peoples voice volume is absolutely invaluable. For $100 ( or less ) this...
-
The Pros The reason this card is one of the better non-Tahiti 7870s is because of Gigabyte's custom PCB. Gigabyte took the 7870 and replaced it's memory chips with Hynix memory so they perform a...
-
Crucial’s award-winning Ballistix and Ballistix Tracer are engineered to deliver the fastest, most reliable memory for gaming and performance enthusiasts. But why should the most hardcore gamers...
-
Gaming with the Sound Blaster Z is truly a spectacular experience. The Sound Blaster Z is an ideal all-round solution for your PC gaming and entertainment needs. It comes complete with the Sound...
Load a C++ DLL in python, functions using extern "C"
post #2 of 2
6/17/12 at 5:21am
- tompsonn
- The debug-inator
-





- Joined: Aug 2011
- Location: Australia
- Posts: 6,754
- Rep: 791 (Unique: 384)
- Select All Posts By This User
You can call functions from DLLs using Python's ctypes module.
http://docs.python.org/library/ctypes.html
Also, check out swig: http://www.swig.org/
http://docs.python.org/library/ctypes.html
Also, check out swig: http://www.swig.org/
My System
(30 items) |
"Zeus"
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i5 2500K (4.5ghz @ 1.320v) | Gigabyte Z68X-UD3R-B3 | MSI R7970 Lightning | Corsair 16GB (4x4GB) |
| Hard Drive | Hard Drive | Hard Drive | Hard Drive |
| Plextor PX-256M5S 256GB | Crucial M4 128GB | Hitachi HDS721010CLA332 | Hitachi HDS723020BLA642 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Hitachi HDS723020BLA642 | Hitachi HUA722010CLA330 | WDC WD10EARS-00Z5B1 | TSSTcorp CDDVDW SH-S223B |
| Cooling | Cooling | OS | Monitor |
| Phanteks PH-TC14PE with TY-140's | Lamptron FCv5 (x2) | Windows 7 Ultimate 64-bit | Dell U2412M |
| Monitor | Monitor | Monitor | Keyboard |
| Dell U2412M | Dell U2212HM | Dell U2212HM | Ducky DK9087 G2 Pro |
| Power | Case | Mouse | Mouse Pad |
| Corsair AX-750 | Corsair Obsidian 650D | Microsoft IntelliMouse Optical | XTRAC Ripper XXL |
| Audio | Audio | Audio | Audio |
| Westone W3 IEMs | RE-272 IEMs | Shure SE-215 IEMs | Schiit Bifrost DAC |
| Audio | Audio | ||
| Schiit Asgard 2 amp | HiVi Swan M50W 2.1 | ||
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i7 950 | GA-X58-UD3R | Radeon HD 5450 | 24GB Corsair @ 1333mhz |
| Hard Drive | OS | Power | Case |
| 4x WD Cavair Red 1TB in RAID 0 | Windows Server 2008 R2 x64 | Corsair HX-520 | LianLi LanCool |
| View all | |||
My System
(30 items) |
"Zeus"
(13 items) |
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i5 2500K (4.5ghz @ 1.320v) | Gigabyte Z68X-UD3R-B3 | MSI R7970 Lightning | Corsair 16GB (4x4GB) |
| Hard Drive | Hard Drive | Hard Drive | Hard Drive |
| Plextor PX-256M5S 256GB | Crucial M4 128GB | Hitachi HDS721010CLA332 | Hitachi HDS723020BLA642 |
| Hard Drive | Hard Drive | Hard Drive | Optical Drive |
| Hitachi HDS723020BLA642 | Hitachi HUA722010CLA330 | WDC WD10EARS-00Z5B1 | TSSTcorp CDDVDW SH-S223B |
| Cooling | Cooling | OS | Monitor |
| Phanteks PH-TC14PE with TY-140's | Lamptron FCv5 (x2) | Windows 7 Ultimate 64-bit | Dell U2412M |
| Monitor | Monitor | Monitor | Keyboard |
| Dell U2412M | Dell U2212HM | Dell U2212HM | Ducky DK9087 G2 Pro |
| Power | Case | Mouse | Mouse Pad |
| Corsair AX-750 | Corsair Obsidian 650D | Microsoft IntelliMouse Optical | XTRAC Ripper XXL |
| Audio | Audio | Audio | Audio |
| Westone W3 IEMs | RE-272 IEMs | Shure SE-215 IEMs | Schiit Bifrost DAC |
| Audio | Audio | ||
| Schiit Asgard 2 amp | HiVi Swan M50W 2.1 | ||
| View all | |||
| CPU | Motherboard | Graphics | RAM |
|---|---|---|---|
| Intel Core i7 950 | GA-X58-UD3R | Radeon HD 5450 | 24GB Corsair @ 1333mhz |
| Hard Drive | OS | Power | Case |
| 4x WD Cavair Red 1TB in RAID 0 | Windows Server 2008 R2 x64 | Corsair HX-520 | LianLi LanCool |
| View all | |||
Return Home
Back to Forum: Application Programming
- Load a C++ DLL in python, functions using extern "C"
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › Load a C++ DLL in python, functions using extern "C"
Currently, there are 1765 Active Users
(574 Members and 1191 Guests)
Recent Discussions
- › [Time] Twitter gives us a visual "Hate Map" of the USA 2 seconds ago
- › [ChinaDIY]The default fully loaded breaking 100 ° C i7-4770K retail... 9 seconds ago
- › Core 17 Beta WU 48 seconds ago
- › Korean QNIX QX2710 Evolution ll 27" 2560x1440 Matte Samsung PLS... 1 minute ago
- › Headphones for Counterstrike GO? 1 minute ago
- › The AMD How To Thread 1 minute ago
- › Why The Future is ITEC Cooling Systems 1 minute ago
- › [anandtech] AMD Continues Assembling Dream Team: Sean Pelletier... 1 minute ago
- › The Official Cooler Master HAF X/932/922/912(+) Club 1 minute ago
- › Why do I keep losing my RAID in Windows? 2 minutes ago
View: New Posts | All Discussions
Recent Reviews
- › Cooler Master Hyper 212 EVO CPU Cooler (RR-212E-20PK-R1) by AlDyer
- › Wireless Stereo Headset by DoomDash
- › GIGABYTE Radeon HD 7870 GHz Edition GV-R787OC-2GD Video Card by VitalShot
- › Crucial Ballistix sport 16GB (2 x 8GB) 240-Pin DDR3 SDRAM DDR3 1600... by Fieldsweeper
- › Creative 70SB150000000 Sound Card by Fieldsweeper
- › ASUS PB Series PB278Q 27"" 5ms (GTG) WQHD Widescreen LED... by R3apR369
- › SilverStone Aluminum Body ATX Full Tower Computer Case TJ07B -... by R3apR369
- › Cooler Master HAF 922 RC-922M-KKN1-GP Black Steel + Plastic and... by Steve1300
- › CORSAIR AX1200i 1200W Power Supply by Masked
- › Silverstone Tek Aluminum Mini ITX 140mm FanX1 USB3.0x2 3.5-Inchx1... by yancyv8
View: More Reviews
New Articles
- › METRO 2033 STARTUP CRASH FIX WORKS by xiangelo
- › Why are DNS Servers Important? How to make... by exzacklyright
- › Titanium Backup Guide For Newbies by exzacklyright
- › How to install ADB (Android Debug Bridge) by exzacklyright
- › How to take ownership of a file, folder, or... by exzacklyright
- › How to disable the open file security warning... by exzacklyright
- › Clean and Make a USB Bootable Flash Drive for... by exzacklyright
- › Do you Really Need Cell Phone Insurance by andyharris
- › Efficiency Trials by dava4444
- › How on EARTH Do I Build a Computer??... by dava4444
View: New Articles | All Articles
Home | Reviews | Forums | Articles | My Profile
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map
About Overclock.net | Join the Community | Advertise | Contact Us | All Staff
© 2013 Shogun Interactive Development Overclock.net is powered by Huddler Tech | FAQ | Support | Privacy | ToS | DMCA | Site Map




