Click here to Skip to main content
15,914,398 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalprecise time measuring Pin
tguzella19-Oct-03 6:55
tguzella19-Oct-03 6:55 
GeneralRe: precise time measuring Pin
David Crow20-Oct-03 2:50
David Crow20-Oct-03 2:50 
GeneralRe: precise time measuring Pin
PremL20-Oct-03 5:49
PremL20-Oct-03 5:49 
GeneralNeed opinion + help, can anyone just comment anything, suggestion, websites would be good, I would be forever Thankful Pin
Snyp19-Oct-03 6:37
Snyp19-Oct-03 6:37 
GeneralMRU problem Pin
YaronNir19-Oct-03 6:26
YaronNir19-Oct-03 6:26 
GeneralInteresting Interview with Bjarne Stroustrup Pin
Kevin McFarlane19-Oct-03 6:16
Kevin McFarlane19-Oct-03 6:16 
GeneralDatabase Implementation, Please!!! Pin
Chopper19-Oct-03 4:39
Chopper19-Oct-03 4:39 
GeneralSetAtGrow problem Pin
YaronNir19-Oct-03 2:42
YaronNir19-Oct-03 2:42 
Hi all,

I am using the following code:

CArray<int,int> myArray;

// Add elements to the array.
for (int i=0;i < 10;i++)
	myArray.Add(i);

myArray.RemoveAt(5);

TRACE(_T("\n"));
for ( i = 0; i < myArray.GetSize(); i++)
{
	TRACE(_T("%d\n"),myArray.GetAt(i));
}

TRACE(_T("size is : %d"),myArray.GetSize());

TRACE(_T("\n"));
myArray.SetAtGrow(5,200);
for ( i = 0; i < myArray.GetSize(); i++)
{
	TRACE(_T("%d\n"),myArray.GetAt(i));
}

TRACE(_T("size is : %d\n\n"),myArray.GetSize());


problem is, both sizes are 9 in the debug output window....
and for the second time i print the array i see that 200 is instead of 6 and not 5!!!??????

can any1 help here?

thanks

Yaron

Ask not what your application can do for you,
Ask what you can do for your application
GeneralRe: SetAtGrow problem Pin
BadJerry19-Oct-03 7:11
BadJerry19-Oct-03 7:11 
GeneralRe: SetAtGrow problem Pin
YaronNir19-Oct-03 7:12
YaronNir19-Oct-03 7:12 
GeneralSwitchnig beetween views Pin
Chernobog119-Oct-03 0:38
Chernobog119-Oct-03 0:38 
GeneralMCI prob Pin
AI_Warrior19-Oct-03 0:30
AI_Warrior19-Oct-03 0:30 
GeneralRe: MCI prob Pin
Alexander M.,19-Oct-03 4:00
Alexander M.,19-Oct-03 4:00 
GeneralSending a "Click". Help please is urgent. Pin
Rafael Fernández López18-Oct-03 23:54
Rafael Fernández López18-Oct-03 23:54 
GeneralRe: Sending a &quot;Click&quot; Pin
User 665819-Oct-03 1:00
User 665819-Oct-03 1:00 
GeneralRe: Sending a "Click". Help Please, is Urgent Pin
Rafael Fernández López19-Oct-03 1:01
Rafael Fernández López19-Oct-03 1:01 
GeneralRe: Sending a &quot;Click&quot;. Help please is urgent. Pin
Michael Dunn19-Oct-03 5:35
sitebuilderMichael Dunn19-Oct-03 5:35 
GeneralRe: Sending a &quot;Click&quot;. Help please is urgent. Pin
Rafael Fernández López19-Oct-03 5:51
Rafael Fernández López19-Oct-03 5:51 
GeneralRe: Sending a &quot;Click&quot;. Help please is urgent. Pin
Michael Dunn19-Oct-03 8:28
sitebuilderMichael Dunn19-Oct-03 8:28 
GeneralRe: Sending a &quot;Click&quot;. Help please is urgent. Pin
Rafael Fernández López19-Oct-03 10:19
Rafael Fernández López19-Oct-03 10:19 
GeneralRe: Sending a &quot;Click&quot;. Help please is urgent. Pin
Jonas Larsson20-Oct-03 1:08
Jonas Larsson20-Oct-03 1:08 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Rafael Fernández López20-Oct-03 1:48
Rafael Fernández López20-Oct-03 1:48 
QuestionList Box with DoModal - Can anyone help a newbie? Pin
Anonymous18-Oct-03 23:29
Anonymous18-Oct-03 23:29 
AnswerRe: List Box with DoModal - Can anyone help a newbie? Pin
YaronNir19-Oct-03 2:37
YaronNir19-Oct-03 2:37 
GeneralRe: List Box with DoModal - Can anyone help a newbie? Pin
Anonymous19-Oct-03 8:52
Anonymous19-Oct-03 8:52 

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.