Click here to Skip to main content
15,896,915 members
Home / Discussions / C#
   

C#

 
AnswerRe: internal/internal protected Pin
Pete O'Hanlon27-Jul-07 2:17
mvePete O'Hanlon27-Jul-07 2:17 
GeneralRe: internal/internal protected Pin
Sonia Gupta27-Jul-07 2:22
Sonia Gupta27-Jul-07 2:22 
GeneralRe: internal/internal protected Pin
Malcolm Smart27-Jul-07 2:24
Malcolm Smart27-Jul-07 2:24 
GeneralRe: internal/internal protected Pin
Pete O'Hanlon29-Jul-07 10:04
mvePete O'Hanlon29-Jul-07 10:04 
GeneralRe: internal/internal protected Pin
Pete O'Hanlon29-Jul-07 10:13
mvePete O'Hanlon29-Jul-07 10:13 
QuestionTreeView Bug! [modified] Pin
mjelten27-Jul-07 1:48
mjelten27-Jul-07 1:48 
AnswerRe: TreeView Bug! Pin
Paul Conrad28-Jul-07 17:49
professionalPaul Conrad28-Jul-07 17:49 
QuestionInstantiate Array of User defined type Pin
kildareflare27-Jul-07 1:36
kildareflare27-Jul-07 1:36 
Hello I have a Class A (cNOT) that is inhertied from Class B (acGenericGate)has another class C (CInput) I have developed as a member variable.

This works fine until I try to make this member an array of said class.
The constructor is then not called for the ClassC, and while the array is created, each element is undefined instead of an instance Class C.
What have I missed?
Thanks
Rich

	class cInput  : acGenericGate<br />
	{<br />
		private bool m_bState;<br />
        }<br />
<br />
	abstract class acLogicGate : acGenericGate<br />
	{<br />
		private cInput[] m_bInputs;<br />
<br />
		public acLogicGate()<br />
		{<br />
                m_bInputs = new cInput[2];<br />
                }<br />
        }<br />
<br />
	class cNOT : acLogicGate<br />
	{<br />
        }<br />
<br />


Thus the array m_bInputs is empty it does not contain instances of cInput.
AnswerRe: Instantiate Array of User defined type Pin
Pete O'Hanlon27-Jul-07 1:56
mvePete O'Hanlon27-Jul-07 1:56 
GeneralRe: Instantiate Array of User defined type Pin
kildareflare27-Jul-07 23:46
kildareflare27-Jul-07 23:46 
GeneralRe: Instantiate Array of User defined type Pin
PaulPrice29-Jul-07 21:04
PaulPrice29-Jul-07 21:04 
AnswerRe: Instantiate Array of User defined type [modified] Pin
PaulPrice27-Jul-07 2:53
PaulPrice27-Jul-07 2:53 
GeneralRe: Instantiate Array of User defined type Pin
leppie27-Jul-07 3:07
leppie27-Jul-07 3:07 
GeneralRe: Instantiate Array of User defined type Pin
kildareflare28-Jul-07 23:44
kildareflare28-Jul-07 23:44 
GeneralRe: Instantiate Array of User defined type Pin
PaulPrice29-Jul-07 21:10
PaulPrice29-Jul-07 21:10 
QuestionHow to retrieve local settings Pin
Stevo Z27-Jul-07 1:18
Stevo Z27-Jul-07 1:18 
AnswerRe: How to retrieve local settings Pin
Eduard Keilholz27-Jul-07 1:21
Eduard Keilholz27-Jul-07 1:21 
GeneralRe: How to retrieve local settings Pin
Stevo Z27-Jul-07 1:22
Stevo Z27-Jul-07 1:22 
QuestionDatagrid row selection Pin
Nisar Inamdar27-Jul-07 0:53
Nisar Inamdar27-Jul-07 0:53 
QuestionDataGridViewCell Pin
sangramkp27-Jul-07 0:36
sangramkp27-Jul-07 0:36 
AnswerRe: DataGridViewCell Pin
Chetan Patel27-Jul-07 1:07
Chetan Patel27-Jul-07 1:07 
QuestionHow to prioritize the UI thread as a process (.exe) eats up the resources Pin
Rafferty Uy27-Jul-07 0:26
Rafferty Uy27-Jul-07 0:26 
AnswerRe: How to prioritize the UI thread as a process (.exe) eats up the resources Pin
Martin#27-Jul-07 0:36
Martin#27-Jul-07 0:36 
AnswerRe: How to prioritize the UI thread as a process (.exe) eats up the resources Pin
Mike Dimmick27-Jul-07 2:22
Mike Dimmick27-Jul-07 2:22 
QuestionHow to convert Struct to array Pin
kobi10i1027-Jul-07 0:13
kobi10i1027-Jul-07 0:13 

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.