Embedded in assembly

  • Thread starter Thread starter Bart V
  • Start date Start date
B

Bart V

Hi

got a .xsd file i wanne embedded but can't see to find how to cal that
file in managed c++
here is the code I use but I dont get any error or something.

Assembly *a = Assembly::GetExecutingAssembly();
Stream *s = a->GetManifestResourceStream("CDBase.xsd");
m_xmlData = new DataSet();
m_xmlData->ReadXmlSchema(s);
m0_xmlData->WriteXmlSchema("kwenie.xsd");

Any suggestion.

Bart
 
Bart said:
Hi

got a .xsd file i wanne embedded but can't see to find how to cal that
file in managed c++
here is the code I use but I dont get any error or something.

Assembly *a = Assembly::GetExecutingAssembly();
Stream *s = a->GetManifestResourceStream("CDBase.xsd");
m_xmlData = new DataSet();
m_xmlData->ReadXmlSchema(s);
m0_xmlData->WriteXmlSchema("kwenie.xsd");

Any suggestion.

Bart
oeps the zero in m0_xmlData is just a typo with copying and pasting
sorry for the trouble
 
Back
Top