Create shapefiles from dynamic XY data (ArcGIS 9.3.1)

Discussion created by marqdouj on Jul 12, 2010
Latest reply on Dec 19, 2010 by dougchristie
I am trying to port a MapObjects2 application to VS2008.Net.

In MO2, I was able to create a new map layer (shapefile) on the fly by opening a dataconnection to a folder, create a tabledesc (if reqr), and then using the dataconnection and tabledesc I could create a geodataset and assign it to a new map layer object and add it to the map.  I could add new records to the layer for my XY data as needed.

I'm new to ArcGIS and have searched the developer's help file, l but I can't figure out how to do this.

So my question is.... using ArcGIS 9.3.1 objects how do I create a new map layer on the fly and add my XY data to it?