[egenix-users] Embedding mx

Keith Moore keithmoore1 at adelphia.net
Mon Oct 25 16:01:20 CEST 2004


I'm using Visual C++ 6.0 to step thru the snippet below.  When I attempt to
import mx.ODBC.Windows, I get an access violation.  Has anyone seen this?
What am I doing wrong?


#include <Python.h>  /* standard API def */

   void main()
   {
   //version 1
       printf("embed_simple\n");
       Py_Initialize();
       PyRun_SimpleString("import mx");
   >>  PyRun_SimpleString("import mx.ODBC.Windows"); <<

I get Unhandled exception in Embed_Simple.exe...(PYTHON23_D.DLL)...Access
violation.



More information about the egenix-users mailing list