Click here to Skip to main content
15,913,218 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Simple GDI program Pin
Dustin Henry14-May-07 6:17
Dustin Henry14-May-07 6:17 
GeneralRe: Simple GDI program Pin
Michael Dunn14-May-07 8:04
sitebuilderMichael Dunn14-May-07 8:04 
GeneralRe: Simple GDI program Pin
Mark Salsbery14-May-07 8:20
Mark Salsbery14-May-07 8:20 
Questionread xml with dataset Pin
lavy288314-May-07 4:18
lavy288314-May-07 4:18 
QuestionRe: read xml with dataset Pin
David Crow14-May-07 4:20
David Crow14-May-07 4:20 
AnswerRe: read xml with dataset Pin
lavy288314-May-07 4:38
lavy288314-May-07 4:38 
QuestionRe: read xml with dataset Pin
David Crow14-May-07 4:49
David Crow14-May-07 4:49 
AnswerRe: read xml with dataset Pin
lavy288314-May-07 5:00
lavy288314-May-07 5:00 
I created the Xml file...and now I have my function like this...
void readfromfile()
{
String^ strFName = gcnew String("d:\\Contload.xml");
DataSet^ ds = gcnew DataSet();
DataTable^ table;
DataRow^ row;
int i;

try
{
ds->ReadXml(strFName);
DataRowCollection^ dr = ds->Tables[0]->Rows;
}
finally
{
delete strFName;
}

}
but I don't know how to do next....to put the data from the Xml in Tables[]
I created an for like...

for (i=0; i<ds->Tables->Count; i++)
{
table = ds->Tables->Item[i];...................
.......}
but it give me an error :

Error 6 error C2039: 'Item' : is not a member of 'System::Data::DataTableCollection' ...
QuestionRe: read xml with dataset Pin
David Crow14-May-07 5:04
David Crow14-May-07 5:04 
GeneralRe: read xml with dataset Pin
led mike14-May-07 5:06
led mike14-May-07 5:06 
GeneralRe: read xml with dataset Pin
Hamid_RT14-May-07 6:02
Hamid_RT14-May-07 6:02 
Questiondll inside the exe Pin
Russell'14-May-07 4:13
Russell'14-May-07 4:13 
AnswerRe: dll inside the exe Pin
David Crow14-May-07 4:19
David Crow14-May-07 4:19 
GeneralRe: dll inside the exe Pin
Russell'14-May-07 4:26
Russell'14-May-07 4:26 
GeneralRe: dll inside the exe Pin
David Crow14-May-07 4:33
David Crow14-May-07 4:33 
GeneralRe: dll inside the exe Pin
Cedric Moonen14-May-07 4:46
Cedric Moonen14-May-07 4:46 
QuestionHow to be informed/notified of registry modifications Pin
Alexandre GRANVAUD14-May-07 3:41
Alexandre GRANVAUD14-May-07 3:41 
AnswerRe: How to be informed/notified of registry modifications Pin
David Crow14-May-07 4:21
David Crow14-May-07 4:21 
GeneralRe: How to be informed/notified of registry modifications Pin
Alexandre GRANVAUD14-May-07 4:24
Alexandre GRANVAUD14-May-07 4:24 
GeneralRe: How to be informed/notified of registry modifications Pin
led mike14-May-07 4:45
led mike14-May-07 4:45 
GeneralRe: How to be informed/notified of registry modifications Pin
Alexandre GRANVAUD14-May-07 21:41
Alexandre GRANVAUD14-May-07 21:41 
QuestionRe: How to be informed/notified of registry modifications Pin
David Crow15-May-07 2:47
David Crow15-May-07 2:47 
AnswerRe: How to be informed/notified of registry modifications Pin
Alexandre GRANVAUD15-May-07 3:08
Alexandre GRANVAUD15-May-07 3:08 
GeneralRe: How to be informed/notified of registry modifications Pin
David Crow15-May-07 3:12
David Crow15-May-07 3:12 
GeneralRe: How to be informed/notified of registry modifications Pin
Alexandre GRANVAUD15-May-07 3:15
Alexandre GRANVAUD15-May-07 3:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.