Click here to Skip to main content
15,905,776 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Te difference between OnKeyDown and OnKeyUp Pin
prithaa2-Sep-09 6:47
prithaa2-Sep-09 6:47 
QuestionSlicing std::valarray using references? Pin
misterMF2-Sep-09 0:43
misterMF2-Sep-09 0:43 
AnswerRe: Slicing std::valarray using references? Pin
Stuart Dootson2-Sep-09 5:02
professionalStuart Dootson2-Sep-09 5:02 
GeneralRe: Slicing std::valarray using references? Pin
misterMF2-Sep-09 10:15
misterMF2-Sep-09 10:15 
GeneralRe: Slicing std::valarray using references? Pin
Stuart Dootson2-Sep-09 10:58
professionalStuart Dootson2-Sep-09 10:58 
GeneralRe: Slicing std::valarray using references? Pin
misterMF2-Sep-09 11:31
misterMF2-Sep-09 11:31 
AnswerRe: Slicing std::valarray using references? Pin
Code-o-mat2-Sep-09 5:11
Code-o-mat2-Sep-09 5:11 
GeneralRe: Slicing std::valarray using references? Pin
misterMF2-Sep-09 11:09
misterMF2-Sep-09 11:09 
Yes, I know that it's not possible to have an array of references (unfortunately).

Maybe the solution is to have an array of pointers and then to use the trick you suggest to make these pointers to look like references.

By the way, it's not that I really hate pointers, but I think that while going on with code development I'll have to create objects able to intereacte either with valarray<MyT> or with its slices (with same rules and same results). An example can be the following:

std::valarray<MyT> A(20);
std::valarray<<MyT> > B(10);
slice<std::valarray<MyT> > C(A,parameters); // C is the slice of A, C.size() = 10
C += B; //  eventually also the elements in A may be modified by the operation


Thanx!
QuestionI am a noob in .dll files help me! Pin
S_A_E_E_D1-Sep-09 23:49
S_A_E_E_D1-Sep-09 23:49 
AnswerRe: I am a noob in .dll files help me! Pin
Cedric Moonen2-Sep-09 0:01
Cedric Moonen2-Sep-09 0:01 
GeneralRe: I am a noob in .dll files help me! Pin
S_A_E_E_D2-Sep-09 0:41
S_A_E_E_D2-Sep-09 0:41 
AnswerRe: I am a noob in .dll files help me! Pin
Stephen Hewitt2-Sep-09 0:07
Stephen Hewitt2-Sep-09 0:07 
QuestionCeRemoveDirectory deletes only empty directroy,How can delete directory with existing files? Pin
Le@rner1-Sep-09 23:44
Le@rner1-Sep-09 23:44 
AnswerRe: CeRemoveDirectory deletes only empty directroy,How can delete directory with existing files? Pin
Chuck O'Toole2-Sep-09 2:24
Chuck O'Toole2-Sep-09 2:24 
AnswerRe: CeRemoveDirectory deletes only empty directroy,How can delete directory with existing files? Pin
David Crow2-Sep-09 2:44
David Crow2-Sep-09 2:44 
QuestionHow to detect ERRORS in Microsoft Visual Studio 2008 Pin
deadlyabbas1-Sep-09 23:04
deadlyabbas1-Sep-09 23:04 
AnswerRe: How to detect ERRORS in Microsoft Visual Studio 2008 Pin
_AnsHUMAN_ 1-Sep-09 23:09
_AnsHUMAN_ 1-Sep-09 23:09 
Questionerror to compile Pin
programmer2021-Sep-09 22:21
programmer2021-Sep-09 22:21 
AnswerRe: error to compile Pin
«_Superman_»1-Sep-09 22:25
professional«_Superman_»1-Sep-09 22:25 
GeneralRe: error to compile Pin
programmer2022-Sep-09 22:07
programmer2022-Sep-09 22:07 
AnswerRe: error to compile Pin
Cagarrin1-Sep-09 22:58
Cagarrin1-Sep-09 22:58 
GeneralRe: error to compile Pin
programmer2022-Sep-09 22:08
programmer2022-Sep-09 22:08 
AnswerRe: error to compile Pin
David Crow2-Sep-09 2:48
David Crow2-Sep-09 2:48 
GeneralRe: error to compile Pin
programmer2022-Sep-09 22:08
programmer2022-Sep-09 22:08 
QuestionWindProc function in DLL ? Pin
Ranojay1-Sep-09 22:14
Ranojay1-Sep-09 22:14 

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.