Click here to Skip to main content
15,895,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 21:34
Cedric Moonen23-Oct-08 21:34 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 21:42
kaviniswell23-Oct-08 21:42 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 21:48
Cedric Moonen23-Oct-08 21:48 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 21:57
kaviniswell23-Oct-08 21:57 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 22:05
Cedric Moonen23-Oct-08 22:05 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:24
kaviniswell23-Oct-08 22:24 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 22:36
Cedric Moonen23-Oct-08 22:36 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:53
kaviniswell23-Oct-08 22:53 
yes, maybe u are right.
ok, the codes:

int CComboBox::FindString( int nStartAfter, DWORD dwItemData )
{
CListBox *pcListBox = GetListCtrl();
int nIndex = pcListBox->FindString( nStartAfter, dwItemData );
return nIndex;
}

int CListBox::FindString( int nStartAfter, DWORD dwItemData )
{
int nCount = GetCount();
if ( nCount <= nStartAfter )
return LB_ERR;
int nIndex;
for( nIndex=0; nIndex <= nCount; nIndex++ )
{
if ( GetItemData( nIndex ) == dwItemData )
break;
}
return ( nIndex == nCount ? LB_ERR : nIndex );
}

then what is the problem? i will be crazy now...
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
Cedric Moonen23-Oct-08 23:05
Cedric Moonen23-Oct-08 23:05 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
SandipG 23-Oct-08 23:19
SandipG 23-Oct-08 23:19 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
CPallini23-Oct-08 22:13
mveCPallini23-Oct-08 22:13 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:26
kaviniswell23-Oct-08 22:26 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
CPallini23-Oct-08 22:40
mveCPallini23-Oct-08 22:40 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 22:56
kaviniswell23-Oct-08 22:56 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 23:30
kaviniswell23-Oct-08 23:30 
GeneralRe: please help me! "Unhandled exception in **.exe (user32.dll) : 0xC0000005: Access Violation." Pin
kaviniswell23-Oct-08 23:42
kaviniswell23-Oct-08 23:42 
Questionwhy I can't declaring a CArray object in a separate header file [modified] Pin
Electronic7523-Oct-08 21:06
Electronic7523-Oct-08 21:06 
AnswerRe: why I can't declaring a CArray object in a separate header file Pin
KarstenK23-Oct-08 21:16
mveKarstenK23-Oct-08 21:16 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
Electronic7523-Oct-08 23:17
Electronic7523-Oct-08 23:17 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
KarstenK23-Oct-08 23:34
mveKarstenK23-Oct-08 23:34 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
Electronic7524-Oct-08 0:01
Electronic7524-Oct-08 0:01 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
KarstenK24-Oct-08 0:39
mveKarstenK24-Oct-08 0:39 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
Electronic7524-Oct-08 1:15
Electronic7524-Oct-08 1:15 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
KarstenK24-Oct-08 1:24
mveKarstenK24-Oct-08 1:24 
GeneralRe: why I can't declaring a CArray object in a separate header file Pin
Electronic7524-Oct-08 2:38
Electronic7524-Oct-08 2:38 

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.