CreateDataSource Constructor

WRAPPER_API static DataSource *CreateDataSource()

 

Description

The CreateDataSource constructor creates a new instance of the DataSource class.  The resulting instance is not connected to a data source file.  To connect it to a data source file, use the LoadFile method.  The initial value of the Editable property is true, and the initial value of the DefaultIssuer property is "GC".  

 

Example

void DataSource_CreateDataSource()

{

GeoCalcPBW::DataSource * data = GeoCalcPBW::DataSource::CreateDataSource();

_towchar filename("c:\\bmg\\geocalcpbw\\data\\geocalc.xml");

if(! data->LoadFile(filename.c_str()))

{

AfxMessageBox("DataSource::LoadFile failed");

}

 

delete data;

}