C/Visual C - Problema con CB_GETLBTEXT

 
Vista:

Problema con CB_GETLBTEXT

Publicado por eye7 (11 intervenciones) el 02/03/2004 22:12:55
char archivo[MAX_PATH];
int i;
for (i=0; i<npro; i++)
{
if(SendMessage(g_hwnd,CB_GETLBTEXT, i,(LPARAM) archivo)==CB_ERR)
MessageBox(hwnd,\"Se ha producido un error durante la inicialización de clases.\",\"Error\",MB_OK|MB_ICONERROR);
else
...

En este codigo g_hwnd es el handle al combobox y al llegar esa linea se produce el siguiente error: \"First-chance exception in instalador.exe: 0xC0000005: Access Violation.\" Alguna idea de pq ocurre esto??
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder