Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

How do you C++ class into a python?

Name: Anonymous 2013-03-31 23:08

A newb programmer here
I have a project involving pedestrian simulation
I'm planning to use libpedsim.dll in python with Ctypes but so far I cannot make the functions working
Can anyone point out how to make use of this DLL?
Link for said library: http://pedsim.silmaril.org/

Name: Anonymous 2013-03-31 23:15

This is the class documentation: http://pedsim.silmaril.org/documentation/libpedsim/latest/classPed_1_1Tscene.html

I tried to call it this way but it said that the function is not found

from ctypes import *
pedsim = cdll.libpedsim
print pedsim
pedsim.TScene()

Name: Anonymous 2013-04-01 0:32

PEDOSIM

Name: Anonymous 2013-04-01 1:21

A newb programmer here
I have a project involving pedophile simulation
I'm planning to use pedosim.hs in haskell with category theory but so far I cannot make the arrows working
Can anyone point out how to make use of this hs?
Link for said library: http://haskell.org/

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2013-04-01 8:07

You make the python eat it, obviously.

Name: Anonymous 2013-04-01 8:23

Thanks guys
You are really helpful
I finally manage to access the function usin dependency walker
It seems all the function name are mangled and I have to access it with something like getattr(pedsim, "??0Tagent@Ped@@QAE@ABV01@@Z")

Name: Anonymous 2013-04-01 8:25

>>6
< ??0Tagent@Ped@@QAE@ABV01@@Z
That was Symta quality!

Name: Anonymous 2013-04-01 10:38

Faggot, you have to load the library
from ctypes import *
lib = cdll.LoadLibrary('faggotop.dll')

Don't change these.
Name: Email:
Entire Thread Thread List