Click here to Skip to main content
16,012,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
Chris Losinger29-Oct-02 14:33
professionalChris Losinger29-Oct-02 14:33 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
work_to_live29-Oct-02 16:10
work_to_live29-Oct-02 16:10 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
Chris Losinger29-Oct-02 16:13
professionalChris Losinger29-Oct-02 16:13 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
work_to_live29-Oct-02 16:26
work_to_live29-Oct-02 16:26 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
Chris Losinger29-Oct-02 16:30
professionalChris Losinger29-Oct-02 16:30 
GeneralRe: Question, How to fill modal dialog combo box at runtime? Pin
work_to_live29-Oct-02 16:48
work_to_live29-Oct-02 16:48 
QuestionCircular Queue maybe STL...? Pin
alex.barylski29-Oct-02 13:02
alex.barylski29-Oct-02 13:02 
AnswerRe: Circular Queue maybe STL...? Pin
Tim Smith29-Oct-02 14:03
Tim Smith29-Oct-02 14:03 
So you basically want a contiguous byte buffer that can be resized where new blocks bytes get added and removed from the end?

Well, you could use vector. Overkill IMHO. Just resize your allocated undo buffer on the fly. Since the buffer might move in memory, you can't store pointers to objects in the buffer. But you can still reference objects in the buffer by their offset from the start.

Also, don't bother with new/delete. Use malloc/realloc/free (OMG, THEY AREN'T TYPE SAFE, I THINK I AM GOING TO CRY). Then you don't have to worry about creating a new buffer, copying it and the freeing the old. Realloc will take care of that for you.

Sure, it isn't "PC", but screw them. You job is to produce software that works. Not "PC" software that works.

Tim Smith

I'm going to patent thought. I have yet to see any prior art.
GeneralRe: Circular Queue maybe STL...? Pin
alex.barylski29-Oct-02 18:34
alex.barylski29-Oct-02 18:34 
GeneralDouble to Binary Pin
Matthew R. Miller29-Oct-02 12:55
Matthew R. Miller29-Oct-02 12:55 
GeneralRe: Double to Binary Pin
John M. Drescher29-Oct-02 13:34
John M. Drescher29-Oct-02 13:34 
GeneralRe: Double to Binary Pin
Chris Losinger29-Oct-02 13:36
professionalChris Losinger29-Oct-02 13:36 
GeneralSplitter within a view :: MFC Pin
clintsinger29-Oct-02 11:46
clintsinger29-Oct-02 11:46 
GeneralRe: Splitter within a view :: MFC Pin
jhwurmbach29-Oct-02 22:06
jhwurmbach29-Oct-02 22:06 
GeneralMinimum Windows Size (CFormView) :: MFC Pin
valikac29-Oct-02 10:22
valikac29-Oct-02 10:22 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Joaquín M López Muñoz29-Oct-02 11:20
Joaquín M López Muñoz29-Oct-02 11:20 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
niuhaiyun19-Nov-02 0:25
niuhaiyun19-Nov-02 0:25 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Shog929-Oct-02 11:35
sitebuilderShog929-Oct-02 11:35 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
valikac29-Oct-02 12:41
valikac29-Oct-02 12:41 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Shog929-Oct-02 13:09
sitebuilderShog929-Oct-02 13:09 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
valikac29-Oct-02 13:16
valikac29-Oct-02 13:16 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Shog929-Oct-02 13:24
sitebuilderShog929-Oct-02 13:24 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
valikac29-Oct-02 13:27
valikac29-Oct-02 13:27 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Shog929-Oct-02 13:29
sitebuilderShog929-Oct-02 13:29 
GeneralRe: Minimum Windows Size (CFormView) :: MFC Pin
Paul M Watt29-Oct-02 14:59
mentorPaul M Watt29-Oct-02 14:59 

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.