|
Thanks for the halp Mark, that worked perfectly. I've become so dependent on DirectX I've forgotten how to use GDI properly.
Dustin
|
|
|
|
|
Mark Salsbery wrote: Also, WM_PAINT isn't the only place you can draw on the window from. You can draw the text from anywhere you want.
This is true, but if you do any drawing outside of WM_ERASEBKGND and WM_PAINT , you'll need to manually redo the drawing if the window becomes uncovered. (This is what causes people to ask "I draw something in WM_INITDIALOG but it goes away if I move another window over mine.") If you do all drawing in response to those two messages, you won't need to do that bookkeeping.
|
|
|
|
|
Yes. I should have included that in my response.
Thanks Mike!
Mark
"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder
|
|
|
|
|
Hello, I have an Xml and I want to put data from it in tables how can I do this ...please if you have an idea of example or something like this..help me...thanks
|
|
|
|
|
Are you wanting to know how to parse the XML file?
"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 want to know how can I put data from XML in a table so I can use this data...in may code in c++
|
|
|
|
|
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 ?
|
|
|
|