Array...?

14/01/2004 - 21:15 por Will Mendoza | Informe spam
Estoy cargando un array dinamico de esta manera:
paulTipos = new CArray<unsigned long, unsigned long>;
// relleno el arreglo
for( uchApunTipo = 0; uchApunTipo <= Ult_tipo;
uchApunTipo++ )
paulTipos->Add( paulTiposAnt->GetAt( uchApunTipo ) );

cuando lo estoy depurando no puedo ver la data contenida
en el vector. como puedo ver esto?

Saludos... 8¬)
 

Leer las respuestas

#1 Rodrigo Corral González
14/01/2004 - 22:46 | Informe spam
En alguna ocasión encontre estoy y lo guarde por si me servia, no se si
fucniona

Add this to your ..\DevStudio\SharedIDE\Autoexp.dat file

CArray<int,int> = data=<m_pData> size=<m_nSize> max=<m_nMaxSize>
grow=<m_nGrowBy>

This will allow datatips to show you the current values for the array
variable

to QuickWatch a particular CArray element do the following

Suppose:

CArray myArray;

QuickWatch myArray

select m_pData member in listbox

now go to edit box and append (add to the end) the following string:

[2]

it will now look like this: (myArray).m_pData[2]

press the Recalculate button. Wa! La! The 3rd element will be shown!


Un saludo
Rodrigo Corral González

microsoft.public.es.vc FAQ
http://vcfaq.europe.webmatrixhosting.net

Preguntas similares