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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top