Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGetting Detailed NIC Info Pin
Akin Ocal16-Jun-07 9:36
Akin Ocal16-Jun-07 9:36 
AnswerRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 9:48
Mark Salsbery16-Jun-07 9:48 
GeneralRe: Getting Detailed NIC Info Pin
Akin Ocal16-Jun-07 9:49
Akin Ocal16-Jun-07 9:49 
GeneralRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 9:53
Mark Salsbery16-Jun-07 9:53 
GeneralRe: Getting Detailed NIC Info Pin
Akin Ocal16-Jun-07 10:11
Akin Ocal16-Jun-07 10:11 
GeneralRe: Getting Detailed NIC Info Pin
Mark Salsbery16-Jun-07 10:28
Mark Salsbery16-Jun-07 10:28 
QuestionEnumerating PCI & USB Devices ? Pin
Akin Ocal16-Jun-07 9:32
Akin Ocal16-Jun-07 9:32 
QuestionCArray - tripple array fails size assertion [modified] Pin
Vaclav_16-Jun-07 9:29
Vaclav_16-Jun-07 9:29 
I canot make CArray work in three dimensions.
Here is the code snippet

definitions

typedef CArray<double,double&> CDataArray; //single
typedef CArray<CDataArray, CDataArray&> CDDataArray; // double
typedef CArray<CDDataArray, CDDataArray&> CDDDataArray; // tripple


CDataArray m_D_Data_Array;
CDDataArray m_DD_Data_Array;
CDDDataArray m_DDD_Data_Array;

size initialization

m_D_Data_Array.SetSize(10,10);
m_DD_Data_Array.SetSize(10,10);
m_DDD_Data_Array.SetSize(10,10);

code
int size = m_D_Data_Array.GetSize(); // size = 10
size = m_DD_Data_Array.GetSize(); // size = 10
size = m_DDD_Data_Array.GetSize(); // size = 10 !!!

m_D_Data_Array.SetAtGrow(itemIndex,data); // pass
m_DD_Data_Array[iSample].SetAtGrow(itemIndex,data); // pass
m_DDD_Data_Array[idataType][iSample].SetAtGrow(itemIndex,data); // fails


It fails in assertion
index < m_size
with size = 0, but my m_DDD_Data_Array.GetSize(); returns correct size of 10 elements.

Am I out of luck with using tripple CArray??
I actually need up to six dimensions, so is it time to learn vectors?
Or am I going to run into same problem?

Thanks for reading.





-- modified at 16:23 Saturday 16th June, 2007
AnswerRe: CArray - tripple array fails size assertion Pin
Mark Salsbery16-Jun-07 9:55
Mark Salsbery16-Jun-07 9:55 
QuestionProgress Control difference in Editor vs. Runtime Pin
StevenS_Dev16-Jun-07 6:35
StevenS_Dev16-Jun-07 6:35 
QuestionHow to communicate with soundcard Pin
Max++16-Jun-07 2:49
Max++16-Jun-07 2:49 
QuestionRe: How to communicate with soundcard Pin
Mark Salsbery16-Jun-07 6:01
Mark Salsbery16-Jun-07 6:01 
AnswerRe: How to communicate with soundcard Pin
Max++16-Jun-07 6:55
Max++16-Jun-07 6:55 
GeneralRe: How to communicate with soundcard Pin
Mark Salsbery16-Jun-07 7:14
Mark Salsbery16-Jun-07 7:14 
QuestionUsing two different versions of same Visual studio dll Pin
Rose8116-Jun-07 2:37
Rose8116-Jun-07 2:37 
AnswerRe: Using two different versions of same Visual studio dll Pin
Mark Salsbery16-Jun-07 6:06
Mark Salsbery16-Jun-07 6:06 
QuestionAbout Intelliconnect-Registry Settings Pin
Akin Ocal16-Jun-07 2:25
Akin Ocal16-Jun-07 2:25 
QuestionLocalizing some extern/global vriables? Pin
granshah @ eVisionISF16-Jun-07 1:44
granshah @ eVisionISF16-Jun-07 1:44 
AnswerRe: Localizing some extern/global vriables? Pin
Matthew Faithfull16-Jun-07 2:27
Matthew Faithfull16-Jun-07 2:27 
Questionreading excel file through coding Pin
neha.agarwal2716-Jun-07 0:46
neha.agarwal2716-Jun-07 0:46 
GeneralRe: reading excel file through coding Pin
Matthew Faithfull16-Jun-07 1:55
Matthew Faithfull16-Jun-07 1:55 
GeneralRe: reading excel file through coding Pin
neha.agarwal2717-Jun-07 21:01
neha.agarwal2717-Jun-07 21:01 
AnswerRe: reading excel file through coding Pin
Matthew Faithfull17-Jun-07 22:30
Matthew Faithfull17-Jun-07 22:30 
AnswerRe: reading excel file through coding Pin
David Crow18-Jun-07 2:53
David Crow18-Jun-07 2:53 
QuestionTJFTP linking problem Pin
oaa.infocom16-Jun-07 0:17
oaa.infocom16-Jun-07 0:17 

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.