Click here to Skip to main content
15,921,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ON_UPDATE_COMMAND_UI Pin
Tomasz Sowinski26-Jul-01 6:41
Tomasz Sowinski26-Jul-01 6:41 
GeneralDrawing Icons on Buttons Pin
Derek Lakin26-Jul-01 1:54
Derek Lakin26-Jul-01 1:54 
GeneralRe: Drawing Icons on Buttons Pin
Steve Thresher26-Jul-01 5:51
Steve Thresher26-Jul-01 5:51 
GeneralRe: ILC_MASK Pin
Derek Lakin26-Jul-01 21:16
Derek Lakin26-Jul-01 21:16 
GeneralDialog design Pin
26-Jul-01 1:44
suss26-Jul-01 1:44 
QuestionWhat is type: something** ? Pin
26-Jul-01 1:44
suss26-Jul-01 1:44 
AnswerRe: What is type: something** ? Pin
Derek Lakin26-Jul-01 1:47
Derek Lakin26-Jul-01 1:47 
GeneralRe: What is type: something** ? Pin
Derek Waters26-Jul-01 16:50
Derek Waters26-Jul-01 16:50 
It's not that silly. Here's an example. Say you want to sort a very large array of "things", where you don't want to be swapping the things around in memory, because it would be very inefficient. You create an index into the main array of things, where each item in the index points at one of the things. This array is defined as a **:

typedef thing; // thing is large.

thing *m_atThingArray;
thing **m_atThingIndex;
int m_iArraySize = 10000;

m_atThingArray = new thing[m_iArraySize]
m_paThingIndex = new thing*[m_iArraySize];

m_paThingIndex[0] = m_tThingArray[40]; // Makes index[0] point at thing[40]
// more efficiently than moving
// thing[40] to thing[0]

This is good for sorting large arrays of large items.


------------------------
Derek Waters
derek@lj-oz.com
GeneralRe: What is type: something** ? Pin
Sam C26-Jul-01 17:34
Sam C26-Jul-01 17:34 
GeneralRe: What is type: something** ? Pin
Derek Waters26-Jul-01 18:30
Derek Waters26-Jul-01 18:30 
GeneralRe: What is type: something** ? Pin
Sam C26-Jul-01 19:42
Sam C26-Jul-01 19:42 
QuestionSQL ? Pin
otvac26-Jul-01 1:39
otvac26-Jul-01 1:39 
AnswerRe: SQL ? Pin
Matt Gullett26-Jul-01 2:09
Matt Gullett26-Jul-01 2:09 
AnswerRe: SQL ? Pin
Hadi Rezaee27-Jul-01 18:18
Hadi Rezaee27-Jul-01 18:18 
GeneralRe: SQL ? Pin
Jamie Nordmeyer27-Jul-01 20:22
Jamie Nordmeyer27-Jul-01 20:22 
GeneralRe: SQL ? Pin
Hadi Rezaee27-Jul-01 20:45
Hadi Rezaee27-Jul-01 20:45 
GeneralRe: SQL ? Pin
Jamie Nordmeyer27-Jul-01 22:36
Jamie Nordmeyer27-Jul-01 22:36 
GeneralRe: SQL ? Pin
Hadi Rezaee28-Jul-01 18:58
Hadi Rezaee28-Jul-01 18:58 
Generallogging winsock send/receive Pin
Kuniva26-Jul-01 0:30
Kuniva26-Jul-01 0:30 
Generalclass design question Pin
26-Jul-01 0:25
suss26-Jul-01 0:25 
GeneralRe: class design question Pin
Tomasz Sowinski26-Jul-01 2:50
Tomasz Sowinski26-Jul-01 2:50 
GeneralRe: class design question Pin
26-Jul-01 2:58
suss26-Jul-01 2:58 
GeneralRe: class design question Pin
Tomasz Sowinski26-Jul-01 3:09
Tomasz Sowinski26-Jul-01 3:09 
GeneralRe: class design question Pin
26-Jul-01 3:57
suss26-Jul-01 3:57 
GeneralRe: class design question Pin
Tomasz Sowinski26-Jul-01 4:25
Tomasz Sowinski26-Jul-01 4:25 

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.