ok, it was almost intuitive. just made a simple visual c express dll project included python26\include and python26\libs in the project settings the debug version has issues, but the release compiles without a problem. here is the source: http://github.com/tinku99/embedpython