Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
rolfhorror19-Apr-12 21:29
rolfhorror19-Apr-12 21:29 
AnswerRe: VC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
Resmi Anna19-Apr-12 22:55
Resmi Anna19-Apr-12 22:55 
GeneralRe: VC++ 6.0 MFC - Temp disable mouse and keyboard for 5 secs. Pin
rolfhorror20-Apr-12 8:12
rolfhorror20-Apr-12 8:12 
QuestionHow to let client using [i][j] access two dimension array? Pin
fantasy121519-Apr-12 14:28
fantasy121519-Apr-12 14:28 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Mohibur Rashid19-Apr-12 16:34
professionalMohibur Rashid19-Apr-12 16:34 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Lakamraju Raghuram19-Apr-12 18:00
Lakamraju Raghuram19-Apr-12 18:00 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Erudite_Eric19-Apr-12 20:57
Erudite_Eric19-Apr-12 20:57 
AnswerRe: How to let client using [i][j] access two dimension array? Pin
Aescleal20-Apr-12 3:05
Aescleal20-Apr-12 3:05 
Does the problem you're working on particularly need 2 dimensional addressing like that? Quite often you'll find that in a table each column has different semantics and each row represents another entity with the same type of attributes as the one immediately above and below.

So instead of using a vector of vectors or (shudder) a raw 2D array look to see if what you've is actually a simple, 1D, array of structures. You'll find that's particularly true if you're using a database.

e.g. if instead of having:

C++
string table[5][1024];


you might find something like this represents what your app is up to a bit more.

struct thingy
{
    std::string name_;
    std::string favourite_blanchmange_manufacturer_;
    std::string why_they_want_world_peace_;
    std::string smurf_theyd_most_like_to_stangle_;
    std::string this_will_never_be_used_youll_just_have_to_initialise_it_forever_;
};

thingy thingies[ 1024 ];


If you still need a 2D array come back and I'll try and add something else in here about it (but it won't be for a while).

Cheers,

Ash
QuestionOwner Drawn button does not get messages Pin
cpp_prgmer19-Apr-12 11:33
cpp_prgmer19-Apr-12 11:33 
SuggestionRe: Owner Drawn button does not get messages Pin
Mohibur Rashid19-Apr-12 16:35
professionalMohibur Rashid19-Apr-12 16:35 
AnswerRe: Owner Drawn button does not get messages Pin
JohnCz24-Apr-12 12:25
JohnCz24-Apr-12 12:25 
QuestionOpening up a solution file under an older version of Visual Studio Pin
ForNow19-Apr-12 8:01
ForNow19-Apr-12 8:01 
AnswerRe: Opening up a solution file under an older version of Visual Studio Pin
Albert Holguin19-Apr-12 9:03
professionalAlbert Holguin19-Apr-12 9:03 
GeneralRe: Opening up a solution file under an older version of Visual Studio Pin
ForNow19-Apr-12 10:07
ForNow19-Apr-12 10:07 
AnswerRe: Opening up a solution file under an older version of Visual Studio Pin
Chuck O'Toole19-Apr-12 13:32
Chuck O'Toole19-Apr-12 13:32 
QuestionMFC Pin
ITISAG19-Apr-12 4:38
ITISAG19-Apr-12 4:38 
AnswerRe: MFC Pin
Albert Holguin19-Apr-12 4:48
professionalAlbert Holguin19-Apr-12 4:48 
GeneralMFC Pin
ITISAG19-Apr-12 4:51
ITISAG19-Apr-12 4:51 
GeneralRe: MFC Pin
Albert Holguin19-Apr-12 6:41
professionalAlbert Holguin19-Apr-12 6:41 
AnswerRe: MFC Pin
Richard MacCutchan19-Apr-12 4:49
mveRichard MacCutchan19-Apr-12 4:49 
GeneralMFC Pin
ITISAG19-Apr-12 4:54
ITISAG19-Apr-12 4:54 
GeneralRe: MFC Pin
Richard MacCutchan19-Apr-12 5:25
mveRichard MacCutchan19-Apr-12 5:25 
SuggestionRe: MFC Pin
Lakamraju Raghuram19-Apr-12 5:36
Lakamraju Raghuram19-Apr-12 5:36 
GeneralRe: MFC Pin
Nelek21-Apr-12 14:02
protectorNelek21-Apr-12 14:02 
AnswerRe: MFC Pin
Chris Losinger19-Apr-12 6:00
professionalChris Losinger19-Apr-12 6:00 

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.