|
I have a question?
Are static members automatically removed from the HEAP or do we have to remove it manually.
Thanks.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
I think your question is invalid.
Static members are never allocated on heap.
Vipin - MVP
|
|
|
|
|
Is there any good article on net
for the allocation for memory .
regarding diffrent variables and fuctions .
thank u
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
asdfkjsodifuweior wrote: Static members are never allocated on heap.
Then where are they allocated buddy. Tell me.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
-- modified at 0:58 Tuesday 27th December, 2005
|
|
|
|
|
|
JIANG, Sheng[MVP] wrote: on the stack.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
|
JIANG, Sheng[MVP] wrote: depends on the compiler
Thanks for that.
But now if it is allocated on the HEAP do we have to do the cleaning by ourselves.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
No. It won't be allocated on the heap.
My blogs:
http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
http://bloglines.com/public/jiangsheng
Command what is yours
Conquer what is not
---Kane
|
|
|
|
|
Static variables are in the read/write data segment when the loader loads the binary.
Info as to how much the size is, is embedded in the binary at link time.
Vipin -MVP
|
|
|
|
|
Owner drawn wrote: But now if it is allocated on the HEAP do we have to do the cleaning by ourselves.
static variables are not allocated on the heap, so u dont free them. simple rule is that, what u dont allocated u dont have to free it.
Typically a binary is divided into sections, also called as the segments.
data segment
code segment &
stack segment.
so your application may have additional data segment for static data also which are typicaly a read/write segment.
Constant data are stored in read only segment.
All these segments are calculated at link time. i.e. the memory is allocated statically and not dynamically so u dont have to clean up anything.
Prakash
|
|
|
|
|
I have defined a hooker procedure which is named MyProc;when receriving messages this can be invoked,but i can't step into it for debugging,the breakpoints within it seemed invalid.
Why can't i step into the hooker?thank u
|
|
|
|
|
1. Set the DLL project as the active project
2. Insert some breakpoints
3. In the menu, Project / Settings / Debug, use an exe File as the debug session
4. Click OK
Now you can start debugging by pressing F5.
Note: you can only debug a process at a time.
you can also write your debug log to file.
My blogs:
http://blog.joycode.com/jiangsheng
http://blog.csdn.net/jiangsheng
http://bloglines.com/public/jiangsheng
Command what is yours
Conquer what is not
---Kane
|
|
|
|
|
Vincent_Fish wrote: step into the hooker?
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
what is the use of DrawDragRect function?
Hrishikesh
|
|
|
|
|
From MSDN...
Call it in a loop as you sample mouse position, in order to give visual feedback. When you call DrawDragRect, the previous rectangle is erased and a new one is drawn. For example, as the user drags a rectangle across the screen, DrawDragRect will erase the original rectangle and redraw a new one in its new position. By default, DrawDragRect draws the rectangle by using a halftone brush to eliminate flicker and to create the appearance of a smoothly moving rectangle.
The first time you call DrawDragRect, the lpRectLast parameter should be NULL.
Happy christmas friends. May the Love of My Lord and Saviour Jesus bring forth Joy and Happiness into your life too.
<marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" hspace="2" vspace="2">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Can u pls tell me how this line work in details
By default, DrawDragRect draws the rectangle by using a halftone brush to eliminate flicker and to create the appearance of a smoothly moving rectangle.
I actully want to know that how can we eliminate flicker .
is there any role of halftone brush in it .
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
vikas amin wrote: By default, DrawDragRect draws the rectangle by using a halftone brush to eliminate flicker and to create the appearance of a smoothly moving rectangle.
Calm down buddy!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Binary Search Algorithm
Bernie (Boom Boom) Geoffrion worked Atlanta Flames games in the 1970s with the splendid Jiggs McDonald. One night, Geoffrion said, "Jiggs, there are only three things to hockey: shooting and skating." McDonald said, "Right, Boomer. And what's the third?" The exasperated Geoffrion replied," Jiggs, that's the three. Shooting. And. Skating."
|
|
|
|
|
Hi Jack what are you talking about
|
|
|
|
|
Hello everyone!
OK, I've seen how to do this on some website, but I'm creating my listbox with DDX_Control() instead of by creating a CListBox object... Anyone know how to do it with DDX_Control? Thanks!
Lord Kixdemp
www.SulfurMidis.com
www.SulfurSoft.tk
[ftp://][http://][hotline://]tsfc.ath.cx
|
|
|
|
|
View LBS_SORT descr in MSDN
|
|
|
|
|
A Windows list box with the LBS_STANDARD style will sort the list of items into alphabetical order before displaying them in the control.
To create a list box that will not sort, you must remove the LBS_SORT bit from the window style. The following style specification removes this bit:
(LBS_STANDARD | LBS_HASSTRINGS) & ~LBS_SORT
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|