|
I am using MFC Treeview control in my application. For each tree node has some images. usually the image is left side of the tree node but i would like to add this image after the text of the node.
Can you please suggest some ways to do this?
Thanks in advance.
|
|
|
|
|
You will probably need to have to handle NM_CUSTOMDRAW and do the drawing yourself.
This signature was proudly tested on animals.
|
|
|
|
|
|
For the matrix A size mxn. Allow change the marks in the same row or column of A. Algorithms to set up following a number of changes allowed to be the matrix A satisfying nature: Total number of
rank of each row and each column is greater than 0
|
|
|
|
|
And what's your problem exactly ?
|
|
|
|
|
Do you mean 'other than expression ones'?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
pls ! this problem here how to solove arithmetic above.
|
|
|
|
|
Hi there gys,
I'm looking for a way to update a crawler I 've created. Of course I want the update to be applied without system reboot plus the binary changes to be stored on disk. Can you give me some tips on how to do that?
Thanx
|
|
|
|
|
hi everybody!
I am writing Windows console application with Microsoft Visual Studio 2008 (using C only) which needs to allocate big amounts of RAM memory with malloc() anc calloc(). The execution of program can be stopped anytime by user pressing CTRL+C keys or by shutting down console window.
What happens to previously allocated memory when it happens? Is it freed up by the system automatically (I guess not?) or do I need to keep track of allocated memory blocks and free() them all myself when the application receives close signal? If this is the case can anybody direct me to any C code solving this problem?
Thank you in advance,Radek
|
|
|
|
|
According my knowledge, windows os will do remaining job mean os will free all memory which allocated by process when process got exited.
Parag Patel
Sr. Software Eng, Varaha Systems
|
|
|
|
|
You need to free memory that you used(of course if your language was C# you didnt need to do it because it frees memory auomaticaly).
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi Hamid,
I don't know that much about c# but how language does matter when your application kiled?
Parag Patel
Sr. Software Eng, Varaha Systems
|
|
|
|
|
Because the there's a thing called Garbage collector[^], which automatically takes care of all memory de-allocations in case of C# or any other CLI languages.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
I am not clear about C# but as per your answer is it same like JVM used in java? Which take care about memory management.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
Divyang Mithaiwala wrote: I am not clear about C# but as per your answer is it same like JVM used in java?
No, in Java it is also called the garbage collector. I guess you are a bit confused about the names. JVM stands for Java Virtual Machine.
|
|
|
|
|
Cedric Moonen wrote: No, in Java it is also called the garbage collector.
Yes it is garbage collector. But it is part of JVM. Because at compile time java compiler not going to put code related to garbage collection.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
It seems I came late,your answer was Garbage Collection and its the .Net method.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
ParagPatel wrote: I don't know that much about c# but how language does matter when your application kiled?
That's true. When your application gets terminated, you really don't have to worry about the memory it was using. All those get wiped off.
Starting to think people post kid pics in their profiles because that was the last time they were cute - Jeremy.
|
|
|
|
|
First of all, why are you writing such a rogue program that would do nothing good but allocate huge amounts of physical memory? Tell me the name of your program. I must be sure never to use it!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: Tell me the name of your program. I must be sure never to use it!
Vista.
Well...No, I'm wrong Vista uses all that memory in order to prevent you to access system's resources...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Actually, in this case, I would like to defend Vista. It just tries and fills up available physical memory with programs that you consecutively use (XP does not do that, so there's plenty of free available memory shown up in the task manager) so that the next time you open the program, it is opened fast. A pretty good idea if you ask me.
Joke: Except for the fact that I would not want my physical memory to be filled up with my father's accounts excel sheets when I try to play far cry.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: it is opened fast. A pretty good idea if you ask me.
Yes, it is good, if you've a lot of bloated-garbage-collected-applications...
Just kidding, you're right, but, I suppose this is not a new idea, Linux applications had sticky bits since a long time.
Rajesh R Subramanian wrote: Joke: Except for the fact that I would not want my physical memory to be filled up with my father's accounts excel sheets when I try to play far cry.
You're a very lucky man: my physical memory is filled by my wife talking and talking and talking...
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: ...not a new idea, Linux applications had sticky bits ...
Ugh... What is Linux? I'd like a plate of it, preferably with fries.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Oh yes: Lunix, La Sapienza & French fries!
I should know we two are the best in THHBing
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Management memory at vista is differennt with XP,It cached all memory of your system for more speed.
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|