[DUG] using Python for delphi in XE10
Todd Martin
todd.martin.nz at gmail.com
Tue Apr 25 18:09:31 NZST 2017
Hi Ian
Try
PyArg_ParseTuple(args,'s', at sFieldName)
On 25 Apr 2017 2:43 p.m., "Ian Fear" <I_J_Fear at xtra.co.nz> wrote:
I am converting a project that uses py4D. Have the lates version from
github or what ever.
Using the function
GetPythonEngine.PyArg_ParseTuple(args, 's', [sFieldName])
When sfieldName : PAnsiChar;
get a complier error E2001 ordinal type required
py4D is expecting a pAnsiChar
if I change to sfieldName : AnsiChar;
the compiler is happy but the result is #0
a null char I presume
any Ideas on this would be greatly appreciated
Thanks in advance
Ian
Ian Fear
B Agr Sc (Lincoln)
GDip InfSys(Massey)
Fear Consulting Ltd
405 Old Taupo Road
Rotorua
Home /work 07 347 6015
Mobile 027 474 2772
_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20170425/6922d73c/attachment.html
More information about the Delphi
mailing list