Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: [MFC]no subclass, no derivation, just redirect one function of CButton, is it possible? Pin
Richard MacCutchan2-Mar-14 22:35
mveRichard MacCutchan2-Mar-14 22:35 
GeneralRe: [MFC]no subclass, no derivation, just redirect one function of CButton, is it possible? Pin
Falconapollo2-Mar-14 22:38
Falconapollo2-Mar-14 22:38 
GeneralRe: [MFC]no subclass, no derivation, just redirect one function of CButton, is it possible? Pin
Richard MacCutchan2-Mar-14 23:47
mveRichard MacCutchan2-Mar-14 23:47 
AnswerRe: [MFC]no subclass, no derivation, just redirect one function of CButton, is it possible? Pin
CPallini2-Mar-14 22:45
mveCPallini2-Mar-14 22:45 
AnswerRe: [MFC]no subclass, no derivation, just redirect one function of CButton, is it possible? Pin
«_Superman_»3-Mar-14 17:12
professional«_Superman_»3-Mar-14 17:12 
QuestionGood way to optimize or replace a nested for loop? Pin
NilssonCreative2-Mar-14 14:37
professionalNilssonCreative2-Mar-14 14:37 
AnswerRe: Good way to optimize or replace a nested for loop? Pin
«_Superman_»2-Mar-14 15:48
professional«_Superman_»2-Mar-14 15:48 
GeneralRe: Good way to optimize or replace a nested for loop? Pin
NilssonCreative3-Mar-14 6:20
professionalNilssonCreative3-Mar-14 6:20 
Hi and thanks for the answer.

The code above is trying every combination of values 1-70 and is supposed to output them to an array of 20 values.

Example output each iteration: arrVals[] = {3, 6, 12, 15, 22, 26, 29, 34, 37, 41, 44, 48, 51, 54, 57, 61, 63, 67, 69, 70};

Each position in the array has limitations to how big or small they can be as follows:
int llim [20] = {1, 2, 5, 8, 11, 14, 17, 21, 24, 28, 31, 35, 38, 42, 45, 50, 53, 58, 61, 66};
int hlim [20] = {6, 10, 14, 19, 22, 26, 29, 34, 37, 41, 44, 48, 51, 54, 57, 61, 63, 67, 69, 70};

The array arrVals is sent to another function each iteration to decide if the current row of 20 is usable or not.

I hope this is clear enough, please ask if not.
GeneralRe: Good way to optimize or replace a nested for loop? Pin
«_Superman_»3-Mar-14 14:53
professional«_Superman_»3-Mar-14 14:53 
GeneralRe: Good way to optimize or replace a nested for loop? Pin
NilssonCreative3-Mar-14 16:07
professionalNilssonCreative3-Mar-14 16:07 
QuestionAdding new GUID to uuids.h and the new library won't link Pin
Vaclav_1-Mar-14 7:48
Vaclav_1-Mar-14 7:48 
AnswerRe: Adding new GUID to uuids.h and the new library won't link Pin
«_Superman_»1-Mar-14 20:46
professional«_Superman_»1-Mar-14 20:46 
GeneralRe: Adding new GUID to uuids.h and the new library won't link SOLVED Pin
Vaclav_2-Mar-14 5:37
Vaclav_2-Mar-14 5:37 
GeneralRe: Adding new GUID to uuids.h and the new library won't link SOLVED Pin
Vaclav_2-Mar-14 7:11
Vaclav_2-Mar-14 7:11 
JokeRe: Adding new GUID to uuids.h and the new library won't link SOLVED Pin
«_Superman_»2-Mar-14 15:43
professional«_Superman_»2-Mar-14 15:43 
QuestionCircular buffer for file Pin
Dansveen28-Feb-14 10:36
Dansveen28-Feb-14 10:36 
AnswerRe: Circular buffer for file Pin
CPallini28-Feb-14 12:44
mveCPallini28-Feb-14 12:44 
QuestionMFC App & Physical Memory Pin
Don Guy28-Feb-14 9:41
Don Guy28-Feb-14 9:41 
AnswerRe: MFC App & Physical Memory Pin
Richard Andrew x6428-Feb-14 10:28
professionalRichard Andrew x6428-Feb-14 10:28 
GeneralRe: MFC App & Physical Memory Pin
Don Guy28-Feb-14 10:57
Don Guy28-Feb-14 10:57 
AnswerRe: MFC App & Physical Memory Pin
Richard Andrew x6428-Feb-14 11:02
professionalRichard Andrew x6428-Feb-14 11:02 
AnswerRe: MFC App & Physical Memory Pin
David Crow1-Mar-14 6:05
David Crow1-Mar-14 6:05 
QuestionProgram Involving Many changing strings, library’s, and or databases and files? Pin
Craig McRae28-Feb-14 8:01
Craig McRae28-Feb-14 8:01 
AnswerRe: Program Involving Many changing strings, library’s, and or databases and files? Pin
Garth J Lancaster28-Feb-14 11:47
professionalGarth J Lancaster28-Feb-14 11:47 
GeneralRe: Program Involving Many changing strings, library’s, and or databases and files? Pin
Craig McRae2-Mar-14 16:20
Craig McRae2-Mar-14 16:20 

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.