Click here to Skip to main content
15,923,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: RegEnumKeyEx and Windows XP Pin
VadRoz13-Apr-05 1:46
VadRoz13-Apr-05 1:46 
GeneralRe: RegEnumKeyEx and Windows XP Pin
22491713-Apr-05 1:54
22491713-Apr-05 1:54 
GeneralDifferent results using MT and MTd Pin
Pablo Fraile12-Apr-05 23:41
Pablo Fraile12-Apr-05 23:41 
GeneralRe: Different results using MT and MTd Pin
Member 796598513-Apr-05 1:14
Member 796598513-Apr-05 1:14 
GeneralRe: Different results using MT and MTd Pin
Pablo Fraile13-Apr-05 1:23
Pablo Fraile13-Apr-05 1:23 
Generaloverloading [ ] [ ] operator Pin
swati2412-Apr-05 23:34
swati2412-Apr-05 23:34 
GeneralRe: overloading [ ] [ ] operator Pin
toxcct13-Apr-05 0:46
toxcct13-Apr-05 0:46 
GeneralRe: overloading [ ] [ ] operator Pin
Cedric Moonen13-Apr-05 1:09
Cedric Moonen13-Apr-05 1:09 
I think (but I'm really not sure, it's too long that I didn't do that Wink | ;) ) that you will need to define a new class that is the one dimension array (like you mentionned there, CMatrix::foo). And then inside this class, override the [] operator also. But, for the CMatrix operator, it will not return the E template but a foo class... (and then on this return you apply the second operator[] from foo class that returns your E template element).
Ok, but as I said I'm not sure anymore...

But another suggestion: why don't you use the STL vector class ? It is a template class that can manage one dimensionnal arrays. Then you make a vector of vector and you have your matrix. The advantage is that you don't need to write it all again, that it has been tested by thousands of people, ...
GeneralRe: overloading [ ] [ ] operator Pin
Axter26-Apr-05 17:49
professionalAxter26-Apr-05 17:49 
GeneralProblems with Custom controls in separate resource dll Pin
Gemini_II12-Apr-05 23:27
Gemini_II12-Apr-05 23:27 
GeneralRe: Problems with Custom controls in separate resource dll Pin
Member 796598513-Apr-05 1:10
Member 796598513-Apr-05 1:10 
GeneralProblem in loading metafile in VC++ MFC Pin
Sud_8312-Apr-05 23:16
Sud_8312-Apr-05 23:16 
GeneralRe: Problem in loading metafile in VC++ MFC Pin
Chris Losinger13-Apr-05 3:18
professionalChris Losinger13-Apr-05 3:18 
GeneralProblem with CListCtrl Pin
Neeranjan12-Apr-05 23:09
Neeranjan12-Apr-05 23:09 
QuestionHow to send a message from a object to its parents? Pin
thanh-hai.bui12-Apr-05 22:30
thanh-hai.bui12-Apr-05 22:30 
AnswerRe: How to send a message from a object to its parents? Pin
Joel Holdsworth12-Apr-05 22:54
Joel Holdsworth12-Apr-05 22:54 
GeneralRe: How to send a message from a object to its parents? Pin
thanh-hai.bui13-Apr-05 0:50
thanh-hai.bui13-Apr-05 0:50 
AnswerRe: How to send a message from a object to its parents? Pin
ThatsAlok12-Apr-05 23:01
ThatsAlok12-Apr-05 23:01 
GeneralConversion to LONGLONG Pin
fardak12-Apr-05 21:57
fardak12-Apr-05 21:57 
GeneralRe: Conversion to LONGLONG Pin
Joel Holdsworth12-Apr-05 22:17
Joel Holdsworth12-Apr-05 22:17 
GeneralRe: Conversion to LONGLONG Pin
fardak12-Apr-05 22:34
fardak12-Apr-05 22:34 
GeneralRe: Conversion to LONGLONG Pin
Joel Holdsworth12-Apr-05 22:44
Joel Holdsworth12-Apr-05 22:44 
GeneralRe: Conversion to LONGLONG Pin
fardak12-Apr-05 23:27
fardak12-Apr-05 23:27 
GeneralRe: Conversion to LONGLONG Pin
Joel Holdsworth12-Apr-05 23:39
Joel Holdsworth12-Apr-05 23:39 
GeneralRe: Conversion to LONGLONG Pin
fardak13-Apr-05 0:02
fardak13-Apr-05 0:02 

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.