Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Real world example (try it if you wish) Pin
Neville Franks31-Aug-04 10:09
Neville Franks31-Aug-04 10:09 
GeneralRe: Real world example (try it if you wish) Pin
Ernesto D.1-Sep-04 13:19
Ernesto D.1-Sep-04 13:19 
Thanks, ibe found what the problem is, check out the implementation of the CSimpleArray class template included in VC6:

BOOL RemoveAt(int nIndex)
{
if(nIndex != (m_nSize - 1))
{
m_aT[nIndex].~T();
memmove((void*)&m_aT[nIndex], (void*)&m_aT[nIndex + 1], (m_nSize - (nIndex + 1)) * sizeof(T));
}
m_nSize--;
return TRUE;
}

as you can notice, if you remove the last element, the element is NOT destroyed.
ibe been told however, that this "small glitch" is fixed in .NET, i guess the rest of us "mortals" using VC6 are stuck with it.
GeneralISAPI Filter wont load when i add OnSendRawData notification Pin
raed28-Aug-04 22:26
raed28-Aug-04 22:26 
Generalgenadi Pin
genadi28-Aug-04 21:21
genadi28-Aug-04 21:21 
Generalgenadi Pin
genadi28-Aug-04 21:17
genadi28-Aug-04 21:17 
GeneralHowto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 19:12
Ivan Cachicatari28-Aug-04 19:12 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 20:02
sitebuilderMichael Dunn28-Aug-04 20:02 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari28-Aug-04 20:32
Ivan Cachicatari28-Aug-04 20:32 
GeneralRe: Howto detect keyboard language change Pin
Michael Dunn28-Aug-04 21:44
sitebuilderMichael Dunn28-Aug-04 21:44 
GeneralRe: Howto detect keyboard language change Pin
Ivan Cachicatari29-Aug-04 10:45
Ivan Cachicatari29-Aug-04 10:45 
Generaldifferent objects share global parameters Pin
impeham28-Aug-04 14:12
impeham28-Aug-04 14:12 
GeneralAllowing a Template Function to access a private variables in a class. Pin
Supaflyfrank28-Aug-04 12:49
Supaflyfrank28-Aug-04 12:49 
GeneralRe: Allowing a Template Function to access a private variables in a class. Pin
kfaday28-Aug-04 13:16
kfaday28-Aug-04 13:16 
Questiondetect if download? Pin
Larsson28-Aug-04 12:45
Larsson28-Aug-04 12:45 
AnswerRe: detect if download? Pin
valikac28-Aug-04 16:24
valikac28-Aug-04 16:24 
GeneralRe: detect if download? Pin
Larsson29-Aug-04 7:00
Larsson29-Aug-04 7:00 
AnswerRe: detect if download? Pin
David Crow30-Aug-04 4:56
David Crow30-Aug-04 4:56 
GeneralWired Message Routing Problem Pin
pma28-Aug-04 12:37
pma28-Aug-04 12:37 
GeneralNon-printable characters Pin
kfaday28-Aug-04 11:24
kfaday28-Aug-04 11:24 
GeneralRe: Non-printable characters Pin
Ravi Bhavnani28-Aug-04 11:35
professionalRavi Bhavnani28-Aug-04 11:35 
GeneralRe: Non-printable characters Pin
kfaday28-Aug-04 13:15
kfaday28-Aug-04 13:15 
Generalconfuse multiple source and header file Pin
badbirdchung28-Aug-04 9:17
badbirdchung28-Aug-04 9:17 
GeneralRe: confuse multiple source and header file Pin
Joaquín M López Muñoz28-Aug-04 9:28
Joaquín M López Muñoz28-Aug-04 9:28 
GeneralRe: confuse multiple source and header file Pin
badbirdchung28-Aug-04 10:29
badbirdchung28-Aug-04 10:29 
GeneralRe: confuse multiple source and header file Pin
markkuk28-Aug-04 11:55
markkuk28-Aug-04 11:55 

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.