Click here to Skip to main content
15,895,370 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionClass Design Question Pin
ldsdbomber1-Mar-06 1:43
ldsdbomber1-Mar-06 1:43 
AnswerRe: Class Design Question Pin
walter761-Mar-06 2:17
walter761-Mar-06 2:17 
GeneralRe: Class Design Question Pin
ldsdbomber1-Mar-06 5:32
ldsdbomber1-Mar-06 5:32 
GeneralRe: Class Design Question Pin
walter761-Mar-06 5:38
walter761-Mar-06 5:38 
QuestionCracking console app that takes data to stdin. Pin
9ine1-Mar-06 1:02
9ine1-Mar-06 1:02 
AnswerRe: Cracking console app that takes data to stdin. Pin
RobJones1-Mar-06 3:31
RobJones1-Mar-06 3:31 
GeneralRe: Cracking console app that takes data to stdin. Pin
9ine1-Mar-06 5:39
9ine1-Mar-06 5:39 
QuestionConverting HWnd to CWnd Pin
whatever891-Mar-06 0:56
whatever891-Mar-06 0:56 
AnswerRe: Converting HWnd to CWnd Pin
Vinaya1-Mar-06 1:01
Vinaya1-Mar-06 1:01 
AnswerRe: Converting HWnd to CWnd Pin
Nibu babu thomas1-Mar-06 1:03
Nibu babu thomas1-Mar-06 1:03 
AnswerRe: Converting HWnd to CWnd Pin
walter761-Mar-06 1:04
walter761-Mar-06 1:04 
GeneralRe: Converting HWnd to CWnd Pin
whatever891-Mar-06 2:53
whatever891-Mar-06 2:53 
QuestionCombo box height is not increasing Pin
BiswaR1-Mar-06 0:51
BiswaR1-Mar-06 0:51 
AnswerRe: Combo box height is not increasing Pin
khan++1-Mar-06 1:26
khan++1-Mar-06 1:26 
GeneralRe: Combo box height is not increasing Pin
BiswaR1-Mar-06 1:48
BiswaR1-Mar-06 1:48 
GeneralRe: Combo box height is not increasing Pin
khan++1-Mar-06 2:19
khan++1-Mar-06 2:19 
QuestionLost my way in classes and array.. Pin
joostvaningen1-Mar-06 0:50
joostvaningen1-Mar-06 0:50 
Hi,

I'm running into some issues with my custom created class..

A simplified version:

ref class cCollection<br />
{<br />
public:<br />
  int id;<br />
  array< Point >^ points;<br />
  char* name;<br />
};


Declared an array for it with:
<br />
array< cCollection^ >^ aCollection;<br />
<br />
array< cCollection^ >^ aCollection = gcnew array< cCollection^ >(99);


The application compiles, builds, and runs, but when i try to add an element in my btnAdd_Click event with:
<br />
iCount++;<br />
<br />
cCollection^ tempCollection = gcnew cCollection;<br />
<br />
aCollection[iCount] = tempCollection;


...the application crashes with "aCollection contains < undefined value > "

I hope you see my target; I have a class cCollection and i'd like to put them in an array.. I lost track with the fact that my array contains managed elements (points).

Could someone please help me out? thanks in advance,

joost



-- modified at 7:51 Wednesday 1st March, 2006
QuestionRe: Lost my way in classes and array.. Pin
David Crow1-Mar-06 2:58
David Crow1-Mar-06 2:58 
GeneralRe: Lost my way in classes and array.. Pin
joostvaningen1-Mar-06 3:37
joostvaningen1-Mar-06 3:37 
AnswerRe: Lost my way in classes and array.. Pin
joostvaningen1-Mar-06 20:42
joostvaningen1-Mar-06 20:42 
QuestionFile load in memoery memory - then perform read write on that data Pin
zahid_ash1-Mar-06 0:29
zahid_ash1-Mar-06 0:29 
AnswerRe: File load in memoery memory - then perform read write on that data Pin
Naveen1-Mar-06 2:17
Naveen1-Mar-06 2:17 
AnswerRe: File load in memoery memory - then perform read write on that data Pin
David Crow1-Mar-06 3:03
David Crow1-Mar-06 3:03 
QuestionSetBitmapBits not Working as Expected Pin
walter761-Mar-06 0:28
walter761-Mar-06 0:28 
AnswerRe: SetBitmapBits not Working as Expected Pin
includeh101-Mar-06 2:11
includeh101-Mar-06 2:11 

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.