#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    Running Python from C++ - but not VS2008 (v90)


    I have some code here that we used to use to call a Python script from our (very large) application. It worked fine when we used VS2008 (compiler v90), which is what the default Windows version of python27 was compiled with.

    In the last year we've upgraded our application to VS2010, and I was looking to update the Python-calling dll, thinking it would be a morning's work. Unfortunately, after wrestling with the linker and missing dlls for ages, most of my colleagues agree that our application and python27.dll are using incompatible versions of Windows CRT.

    I thought it would be simple enough to find a version of python27.dll (or indeed any 2.X version would be fine) compiled with VS2010 (v100) - but I can't.

    Is there a way to call a Python script from an application compiled in VS2010?
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2013
    Posts
    2
    Rep Power
    0

    With reluctance...


    With reluctance, I've recompiled Python using VS2010.

    I'm surprised that there isn't different versions of the dll for download...

IMN logo majestic logo threadwatch logo seochat tools logo