Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Copying icon data from HICON to be used later Pin
__DanC__5-Aug-08 3:22
__DanC__5-Aug-08 3:22 
QuestionProblem in using CString in Win32 dynamic library Pin
vinay_K5-Aug-08 2:58
vinay_K5-Aug-08 2:58 
AnswerRe: Problem in using CString in Win32 dynamic library Pin
_AnsHUMAN_ 5-Aug-08 3:15
_AnsHUMAN_ 5-Aug-08 3:15 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
vinay_K5-Aug-08 3:46
vinay_K5-Aug-08 3:46 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
_AnsHUMAN_ 5-Aug-08 3:56
_AnsHUMAN_ 5-Aug-08 3:56 
GeneralRe: Problem in using CString in Win32 dynamic library Pin
nisha000005-Aug-08 4:16
nisha000005-Aug-08 4:16 
AnswerRe: Problem in using CString in Win32 dynamic library Pin
Mark Salsbery5-Aug-08 5:35
Mark Salsbery5-Aug-08 5:35 
QuestionAn unhandled exception of type 'System.AccessViolationException' occurred in Test.exe [modified] Pin
Le@rner5-Aug-08 2:37
Le@rner5-Aug-08 2:37 
Hi all,

How can remove this error "An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe

Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt."

In my application is SDI type, i m use splitter here after using splitter in one view i m using a Treeview and in second view i m using a ListCtrl.

in List control for resizing i m using class ResizableFormView that is available on codeproject.

in list control on PreTranslateMessage(MSG* pMsg) function i m using this coding


CListCtrl m_list;
switch(pMsg->message)
{
case WM_KEYDOWN:
{
if (VK_RETURN == (INT)pMsg->wParam && ::GetFocus() == m_list.GetSafeHwnd())
{

int nIndex = m_list.GetNextItem(-1, LVNI_SELECTED);
CString strItem = m_list.GetItemText(nIndex, 0);

//open any dilog box here


}
}
}
return CResizableFormView::PreTranslateMessage(pMsg);//error occured here


for handle enter key on ListCtrl.

this function is done properly but after this the error is coming"An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe"

please tell me what can i do for this.

thank in advance.

IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

AnswerRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 2:44
Cedric Moonen5-Aug-08 2:44 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Le@rner5-Aug-08 18:12
Le@rner5-Aug-08 18:12 
GeneralRe: An unhandled exception of type 'System.AccessViolationException' occurred in Test.exe Pin
Cedric Moonen5-Aug-08 21:08
Cedric Moonen5-Aug-08 21:08 
QuestionSearching for C++ classes (MFC) gathering media infos Pin
Ralf Lohmueller5-Aug-08 2:10
Ralf Lohmueller5-Aug-08 2:10 
QuestionCDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 1:53
bxveer5-Aug-08 1:53 
AnswerRe: CDialog wipes out when switching to a different application Pin
sudhir_Kumar5-Aug-08 2:08
sudhir_Kumar5-Aug-08 2:08 
GeneralRe: CDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 22:05
bxveer5-Aug-08 22:05 
AnswerRe: CDialog wipes out when switching to a different application Pin
Saurabh.Garg5-Aug-08 2:11
Saurabh.Garg5-Aug-08 2:11 
GeneralRe: CDialog wipes out when switching to a different application Pin
bxveer5-Aug-08 22:03
bxveer5-Aug-08 22:03 
QuestionUSB Data Pin
mirtu5-Aug-08 1:31
mirtu5-Aug-08 1:31 
AnswerRe: USB Data Pin
Cedric Moonen5-Aug-08 1:36
Cedric Moonen5-Aug-08 1:36 
GeneralRe: USB Data Pin
mirtu5-Aug-08 1:39
mirtu5-Aug-08 1:39 
GeneralRe: USB Data Pin
Cedric Moonen5-Aug-08 1:44
Cedric Moonen5-Aug-08 1:44 
GeneralRe: USB Data Pin
mirtu5-Aug-08 1:58
mirtu5-Aug-08 1:58 
GeneralRe: USB Data Pin
Cedric Moonen5-Aug-08 2:03
Cedric Moonen5-Aug-08 2:03 
GeneralRe: USB Data Pin
mirtu5-Aug-08 2:12
mirtu5-Aug-08 2:12 
GeneralRe: USB Data Pin
mirtu5-Aug-08 18:08
mirtu5-Aug-08 18:08 

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.