|
lavy2883 wrote: I want to know how can I put data from XML...
So are you already parsing the XML file?
lavy2883 wrote: ...so I can use this data...
Have you successfully created the database and table(s)?
What type of data source (e.g., ODBC, DAO, ADO) are you using?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
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' ...
|
|
|
|
|
So wouldn't it make more sense to ask your queston in the Managed C++ forum?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You have another error. this is the C++/MFC forum and does not pertain to .NET development. There is a C++/CLI forum for those subjects. Also see the many, many, many Database articles for C# here on CodeProject. They will show how to work with database in the .NET platform.
led mike
|
|
|
|
|
led mike wrote: You have another error. this is the C++/MFC forum
But why another error?
|
|
|
|
|
Is it possible to compile an exe to include inside of it some dlls.
That is: my exe size is less than 1MB, and I have some dlls (10MB) that the program needs,.....I would like to have only the exe, that probally will be 11MB.
Is there a flag in the project properties?
thanks
Cheers,
Russell
|
|
|
|
|
Link with the static library.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Yes...it is exactly what I'm searching for....but I'm not finding the flag on VS.
Can you tell me the path of this flag?
many thanks.
Cheers,
Russell
|
|
|
|
|
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Link with the static library.
I think this may confuse the OP: when you use a dll, you often have a lib file that is provided with it. But the lib file contains only information about how to load the DLL and you won't be able to use only the lib file.
AFAIK, if you don't have the code of the dll, then I think your only choice is to link dynamically.
|
|
|
|
|
Hi, i need to know when some (or every, if no other way) keys of the windows' registry are modified or added or removed.
I looked for some kind of hooks but didn't manage to do it...
Is there a way to achieve this ?
thanks
|
|
|
|
|
Alexandre GRANVAUD wrote: Hi, i need to know when some (or every, if no other way) keys of the windows' registry are modified or added or removed.
See RegNotifyChangeKeyValue() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yeah thanks a lot !
|
|
|
|
|
Is Microsoft still hiding that stuff in the documentation?
led mike
|
|
|
|
|
Ok i tried this function but the only thing it does is notifying me something has changed under a specified regkey. But how do i know what exactly changed ?
|
|
|
|
|
Alexandre GRANVAUD wrote: But how do i know what exactly changed ?
You mean what value was changed?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yes or what subkey was added/removed ... etc
|
|
|
|
|
You'll need to compare before and after "snapshots."
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
that's what i already do but it's very very slow because ineed to compare 2 trees of HKLM\Classes !
no way to get only the things that changed ?
|
|
|
|
|
Alexandre GRANVAUD wrote: no way to get only the things that changed ?
None that I know of.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
so is there a way to extract a .reg (snapshot) at one time, extract another one after and a tool to compare and save another .reg containing the differences ?
|
|
|
|
|
Yes, see RegSaveKey() .
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
great with this i can do my 2 snapshots (are they .reg files ?)
but how to compare and extract differencies from the 2 snapshots ?
|
|
|
|
|
Alexandre GRANVAUD wrote: (are they .reg files ?)
That's determined by the second argument.
Alexandre GRANVAUD wrote: but how to compare and extract differencies from the 2 snapshots ?
The same way you would compare any two files. For a quick & dirty approach, you could capture the output of fc.exe.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
fc.exe is it included in windows ?
|
|
|
|