Is possible to create a shape file from an SQL query from withing Mapwindow5?
Sorry for the late reply.
Do you mean like the example in map.AddLayerFromDatabase()