I'm learning a lot about this incredible language, so now I would like your help to use ctypes (A foreign function library for Python).
I have to access some functions in DLL, I think it's not so difficult do this, but I need some help.
I have this code bellow that was written in delphi:
Delphi ( this is a part of function in DDL)
function InitializeMarket ( const pwcActivationKey : PWideChar;
StateCallback : TStateCallBack ;
NewTradeCallback : TNewTradeCallback ;
NewDailyCallback : TNewDailyCallback ;
HistoryTradeCallBack : THistoryTradeCallBack;
TinyBookCallBack : TTinyBookCallBack )
: Short ; stdcall;
My question is how can I write this function in python?
I didn't know if I did well. Here the function above written in python.
Hi Julio,
Good Morning!
I believe the below discussion on stack overflow would be helpful to call the function in Python.
Using Delphi DLL in Python via ctypes - Stack Overflow
Thanks,
Ishan