Re: error C3861: 'Py_InitModule'

2009-01-30 Thread duprez
Ok, I found the reason, you now need to do a bit more work and use PyModule_Create(). Also, for anyone else that may stumble on this, you need to refer to the online Dev doc's that get updated regularly (which I regrettably forgot about) which are here -> http://docs.python.org/dev/3.0/ thanks, M

error C3861: 'Py_InitModule'

2009-01-30 Thread duprez
Hi All, Using python 3.0, VS2005, WinXP SP3 I know this looks like a simple one but i just installed Python 3.0 (no other Python installations etc) and I'm trying to convert my perfectly working 2.5 C code for an embedded interpreter to 3.0. I've changed all of my string functions etc to remove th

Re: Error with Simplemapi.py

2007-08-27 Thread Mick Duprez
On Aug 27, 4:46 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 27 Aug 2007 03:05:30 -0300, Mick Duprez <[EMAIL PROTECTED]> > escribi?: > > > Thank you very much Gabriel, changing the NULL to None did the trick > > (it also helps i

Re: Error with Simplemapi.py

2007-08-26 Thread Mick Duprez
On Aug 27, 2:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 24 Aug 2007 04:03:05 -0300, Mick Duprez <[EMAIL PROTECTED]> > escribi?: > > > I have a small problem. I get an error I don't know how to resolve, > > any help would be much

Error with Simplemapi.py

2007-08-24 Thread Mick Duprez
On Dec 24 2004, 4:56 pm, [EMAIL PROTECTED] wrote: > I wish I new why google doesn't show nicely aligned python code when > you paste the script. > Anyways, in case this helps someone else you can download the script > fromhttp://www.kirbyfooty.com/simplemapi.py > > Ian First of all, thanks to all

embedded python in dll with C

2007-07-15 Thread Mick Duprez
Hi All, I can't quite get my head around embedding Python in a C app and I have a few questions if I may, here is the background. I want to create a dll plugin that has the Python interpreter embedded in it for use in scripting an established application. So far I have created the interface dll and

Re: Python command line error

2007-05-28 Thread Mick Duprez
On May 29, 11:33 am, Max Erickson <[EMAIL PROTECTED]> wrote: > Mick Duprez <[EMAIL PROTECTED]> wrote: > > Hi All, > > > I've installed Python 2.5 on a number of machines but on one I'm > > having problems with the CLI. > > If I fire up

Python command line error

2007-05-28 Thread Mick Duprez
Hi All, I've installed Python 2.5 on a number of machines but on one I'm having problems with the CLI. If I fire up the 'cmd' dos box and type 'python' I get a line of gibberish and it locks up the cli, if I run the 'command' dos box I get a few lines of garbage and it crashes/closes the dos box.