---------- Forwarded message ----------
From: lakki p <[EMAIL PROTECTED]>
Date: Oct 17, 2007 3:31 PM
Subject: Regarding Embedded Pyhton
To: python-win32@python.org

Hi,
i try to execute attached example.but it showing error  "wchar.h" unable to
open.
just i commented where it was showing.
still i am getting errors like unresolved external reference Py_Initialize
and Py_Finalize and PyInt_FromLong.
Thanks,
Lakshmi.
// Don't forget to import "pythonXX.lib"!
#include <Python.h>
int main()
{
 Py_Initialize();

 // TODO: Add your Python code here.
 PyObject* pyIntObject = PyInt_FromLong(5);
 if (pyIntObject == NULL) ; // Error

 Py_DECREF(pyIntObject);

 Py_Finalize();
 return 0;
}

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to