I am new to this board and I am using Python 2.2.1 on Windows XP SP2. I am working on embedding some python functionality in a C++ win32 DLL, and I am having issues using the PyImport_ functions available in the python C API. More specifically I am trying to use Pyimport_ImportModule() to import sys, and it doesn't work. I have also tried using PyString_FromString() to convert the the string "sys" to a Python object to then use PyImport_Import(). Can't get it to work. The only way to properly import sys is to use PyRun_SimpleString("import sys"). I think this a pretty standard question but I haven't found a definite answer yet. does the problem come from the fact that sys is a built-in module? What are the limitations on the PyImport_ functions with respect to the different types of module one could try to import? TIA.