Click here to Skip to main content
15,914,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
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

<br />
CListCtrl m_list;<br />
switch(pMsg->message) <br />
	{<br />
	case WM_KEYDOWN:<br />
		{<br />
		if (VK_RETURN == (INT)pMsg->wParam && ::GetFocus() == m_list.GetSafeHwnd())		<br />
		{<br />
	<br />
			int nIndex		= m_list.GetNextItem(-1, LVNI_SELECTED);<br />
			CString strItem = m_list.GetItemText(nIndex, 0);<br />
<br />
			//open any dilog box here<br />
<br />
<br />
						}<br />
		}<br />
	}<br />
	return CResizableFormView::PreTranslateMessage(pMsg);<br />


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

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 
QuestionUser interface Pin
kDevloper5-Aug-08 1:06
kDevloper5-Aug-08 1:06 
AnswerRe: User interface Pin
SandipG 5-Aug-08 1:12
SandipG 5-Aug-08 1:12 

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.