Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RGB->HSV use SSE Pin
Paul Conrad15-Jul-07 9:29
professionalPaul Conrad15-Jul-07 9:29 
QuestionOne Instance of class Pin
Stan the man14-Jul-07 11:26
Stan the man14-Jul-07 11:26 
AnswerRe: One Instance of class Pin
Mark Salsbery14-Jul-07 11:32
Mark Salsbery14-Jul-07 11:32 
GeneralRe: One Instance of class Pin
Stan the man14-Jul-07 14:24
Stan the man14-Jul-07 14:24 
GeneralRe: One Instance of class Pin
Mark Salsbery14-Jul-07 14:54
Mark Salsbery14-Jul-07 14:54 
AnswerRe: One Instance of class Pin
#realJSOP15-Jul-07 1:56
professional#realJSOP15-Jul-07 1:56 
GeneralRe: One Instance of class Pin
Stan the man15-Jul-07 4:24
Stan the man15-Jul-07 4:24 
GeneralRe: One Instance of class Pin
#realJSOP15-Jul-07 5:43
professional#realJSOP15-Jul-07 5:43 
Well, once you allocate your CEdit iobject on the heap, everything inside it also resides on the heap, so you can declare your keybad object like so:

class CMyEdit { private: CMyKedPad m_KeyPad; };

...and then initialize it in the CMyEdit constructor.

At that point, there's no overhead involved in allocating that object on the heap, and you don't have to worry about delete/null it when your CMyEdit object cleans itself up. My guess is that your KeyPad object doesn't contain much data, so it's not like multiple instances is going to take up much space (probably less than 64 bytes).

I still see no need for a static object (which is my entire point).




"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


GeneralRe: One Instance of class Pin
Stan the man15-Jul-07 6:19
Stan the man15-Jul-07 6:19 
Questioncan i update a function while running project ??? Pin
N.D.Quan14-Jul-07 10:37
N.D.Quan14-Jul-07 10:37 
AnswerRe: can i update a function while running project ??? Pin
c_explorer14-Jul-07 10:40
c_explorer14-Jul-07 10:40 
AnswerRe: can i update a function while running project ??? Pin
Mark Salsbery14-Jul-07 11:24
Mark Salsbery14-Jul-07 11:24 
AnswerRe: can i update a function while running project ??? Pin
ThatsAlok16-Jul-07 0:55
ThatsAlok16-Jul-07 0:55 
Generalay da Pin
N.D.Quan16-Jul-07 1:25
N.D.Quan16-Jul-07 1:25 
QuestionNeed help!!! Embedding Winsock-Server in my App Pin
c_explorer14-Jul-07 10:32
c_explorer14-Jul-07 10:32 
AnswerRe: Need help!!! Embedding Winsock-Server in my App Pin
Mark Salsbery14-Jul-07 11:28
Mark Salsbery14-Jul-07 11:28 
GeneralRe: Need help!!! Embedding Winsock-Server in my App Pin
c_explorer14-Jul-07 12:48
c_explorer14-Jul-07 12:48 
QuestionInline functions Pin
tom groezer14-Jul-07 10:11
tom groezer14-Jul-07 10:11 
AnswerRe: Inline functions Pin
c_explorer14-Jul-07 11:47
c_explorer14-Jul-07 11:47 
AnswerRe: Inline functions Pin
Chris Losinger14-Jul-07 19:02
professionalChris Losinger14-Jul-07 19:02 
QuestionPreventing redraw. Pin
paper6714-Jul-07 10:07
paper6714-Jul-07 10:07 
AnswerRe: Preventing redraw. Pin
Mark Salsbery14-Jul-07 11:37
Mark Salsbery14-Jul-07 11:37 
QuestionCache hit rates Pin
tom groezer14-Jul-07 10:00
tom groezer14-Jul-07 10:00 
AnswerRe: Cache hit rates Pin
Steve Echols14-Jul-07 18:31
Steve Echols14-Jul-07 18:31 
GeneralRe: Cache hit rates Pin
David Crow16-Jul-07 4:54
David Crow16-Jul-07 4:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.