|
|
you're right
this function dosen't work on NTFS volume
when i tried on FAT32 volume it works well
thank you
|
|
|
|
|
i know Change Journal now
but if i wanna it works on NTFS how should i do
still
|
|
|
|
|
|
the demo got some error
error C2065: 'USN_JOURNAL_DATA' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'ujd'
error C2065: 'ujd' : undeclared identifier
error C2065: 'FSCTL_QUERY_USN_JOURNAL' : undeclared identifier
error C2228: left of '.UsnJournalID' must have class/struct/union type
error C2228: left of '.FirstUsn' must have class/struct/union type
error C2228: left of '.NextUsn' must have class/struct/union type
error C2228: left of '.LowestValidUsn' must have class/struct/union type
error C2228: left of '.MaxUsn' must have class/struct/union type
error C2228: left of '.MaximumSize' must have class/struct/union type
error C2228: left of '.AllocationDelta' must have class/struct/union type
error C2228: left of '.FirstUsn' must have class/struct/union type
error C2039: 'UsnJournalID' : is not a member of 'READ_USN_JOURNAL_DATA'
c:\program files\microsoft visual studio\vc98\include\winioctl.h(1873) : see declaration of 'READ_USN_JOURNAL_DATA'
error C2228: left of '.UsnJournalID' must have class/struct/union type
error C2039: 'FileNameOffset' : is not a member of 'USN_RECORD'
c:\program files\microsoft visual studio\vc98\include\winioctl.h(1895) : see declaration of 'USN_RECORD'
is there some header file not included??
|
|
|
|
|
You need to install latest platform SDK or if you have the SDK installed change move latest SDK "include path" to top here -> Tools->Options->Directories. I had similar errors!
Nibu thomas
Microsoft MVP for VC++
Code must be written to be read, not by the compiler, but by another human being.
Programming Blog: http://nibuthomas.wordpress.com
|
|
|
|
|
where i can get latest platform SDK
my ide is VC6.0
i am a Chinese so sometimes i can't quite understand correctly
Thanks a lot
|
|
|
|
|
Hi,
i want to open a MDI-Application with more then 1 (2, 4, 6) childviews at startup (like Photoshop)?
Could you explaim me how i can manage this?
I searched at Code-Project but i couldnt't find any sample featuring this ;(
...many thanks
Croc
|
|
|
|
|
2 ways:
Different views attached to the same document
or
Using SplitterViews
There should be examples for that
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi Nelek,
thanx for your quick help!
Hmmm i think i will prefer Splitters, do you think splitters are the better (cleaner) way?
Best regards
Crocodile Buck
|
|
|
|
|
Maybe for 2 or 3 views, but you memtioned 6 in your original post. That's a lot of different views to visually take in all at once, regardless of whether they are splitters or cascading MDI children. Do you really need that many?
Judy
|
|
|
|
|
hi, what is the interface or function to access the taskbar icons?...
|
|
|
|
|
Splitters are good if you don't have many views or if that views are not going to be moved or something like that. If you want to have "free" movement views, to make them visible or invisible depending on menu "view" and so on... it will be better to have more than one view with different childframes, it will give you more freedom to manage them.
It is not optimized (it was my first try, but it works) but you can have a look to this message[^] to open more than one view with only one document, and to this one[^] to manage how to close them priorizing the "main window".
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Hi,
hmmm i think you all are right, and so i do not need free movement in the actual project and i only need 4 Views i will take splitters!
Many Thanx for your help
&
Best regards
Crocodile Buck
|
|
|
|
|
You are wellcome
Regards.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
I think better to USE cascading MDI childs to achive photoshop like UI.
-@SuDhIrKuMaR@-
|
|
|
|
|
Hi guys,
does someone know a good freeware tool to generate
UML diagrams making a reverse operation from an existing
Microsoft Visual C++ project ?
Thanks a lot !!
|
|
|
|
|
Rational Rose.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
Rational Rose is freeware? Wow, since when? I got to get me some of that.
led mike
|
|
|
|
|
led mike wrote: Wow, since when?
When I'm at work.
lol, I just read the title and replied.
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus
Best wishes to Rexx[^]
|
|
|
|
|
I have a tree data structure that I use for my scene graph that I traverse each frame to update 20.000 nodes, I am currently doing the typical recursive traversal but probably it would be quicker if I converted the recursive traversal in an iterative one, does anyone have any hint on how to do that?
Here is how my data structure looks like:
class Node
{
public:
... some data ...
std::vector<node*> Children;
};
void do_something_before(Node*)
{
...
}
void do_something_after(Node*)
{
...
}
void traverse(Node* node)
{
do_something_before(node);
for(int i=0; i<node->Children.size(); ++i )
traverse(node->Children[i]);
do_something_after(node);
}</node-></node*>
Thanks
|
|
|
|
|
Michele Bosi wrote: does anyone have any hint on how to do that?
You can use a stack to simulate calling a function recursively. For instance, look here[^]
|
|
|
|
|
I already saw that example of wikipedia, unfortunately it is for a binary tree meanwhile I would need a more general N-ary tree and with operations on the node performed before and after visiting the children. I thought there would be a "text-book" solution to this but it seems that this is a much more complex problem than I expected...
|
|
|
|
|
Michele Bosi wrote: I thought there would be a "text-book" solution to this but it seems that this is a much more complex problem than I expected...
It is not trivial, but it is still pretty straightforward: replace recursive calls with a loop and a stack. Local variables would take values from the stack, much like function parameters, and recursive function calls would translate to putting parameters on the stack and going to the beginning of the loop.
|
|
|
|
|
In theory I would also do as you say, but when you actually try to translate it into practice everything becomes much more foggy, especially the management of the 2 functions "do_something_before()" and "do_soemthing_after()".
|
|
|
|