Click here to Skip to main content
15,890,717 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBook Of MFC and VC++ Pin
rdop3-Sep-08 0:09
rdop3-Sep-08 0:09 
AnswerRe: Book Of MFC and VC++ Pin
Jijo.Raj3-Sep-08 0:48
Jijo.Raj3-Sep-08 0:48 
QuestionRe: Book Of MFC and VC++ Pin
David Crow3-Sep-08 5:05
David Crow3-Sep-08 5:05 
QuestionCListCtrl Crash On Add Item Pin
dehseth2-Sep-08 22:44
dehseth2-Sep-08 22:44 
AnswerRe: CListCtrl Crash On Add Item Pin
Cedric Moonen2-Sep-08 22:47
Cedric Moonen2-Sep-08 22:47 
GeneralRe: CListCtrl Crash On Add Item Pin
dehseth2-Sep-08 23:07
dehseth2-Sep-08 23:07 
GeneralRe: CListCtrl Crash On Add Item Pin
Cedric Moonen2-Sep-08 23:17
Cedric Moonen2-Sep-08 23:17 
GeneralRe: CListCtrl Crash On Add Item [modified] Pin
dehseth3-Sep-08 0:10
dehseth3-Sep-08 0:10 
Well I have added member variable by right clicking on the CList control. Wizard just added control variable in .h file:

public:
// ClistCtrl control
CView list;


And added DDX Control code in .cpp file:

DDX_Control(pDX, LISTVIEW, list);


But I got these errors during compile:

1. error C2259: 'CView' : cannot instantiate abstract class	<br />
2. error C2248: 'CView::CView' : cannot access protected member declared in class 'CView'<br />
3. error C2259: 'CView' : cannot instantiate abstract class


Well I changed the CView type to CListCtrl. The application compiled successfully but when I tried to add an item it gives me this error:

Unhandled exception at 0x275b9098 in dot.exe: 0xC0000005: Access violation reading location 0x00000050.

and shows file afxcrit.h at line:

LeaveCriticalSection(&_afxResourceLock[nLockType]);

I guess the previous problem still remains... Confused | :confused:

One more thing application also crashes at the same point when I click column header (it does not contain any data) WTF | :WTF:

modified on Wednesday, September 3, 2008 6:54 AM

GeneralRe: CListCtrl Crash On Add Item Pin
Cedric Moonen3-Sep-08 1:52
Cedric Moonen3-Sep-08 1:52 
GeneralRe: CListCtrl Crash On Add Item Pin
dehseth3-Sep-08 3:14
dehseth3-Sep-08 3:14 
GeneralRe: CListCtrl Crash On Add Item Pin
Cedric Moonen3-Sep-08 3:19
Cedric Moonen3-Sep-08 3:19 
QuestionParent and chield Dialog Pin
NewVC++2-Sep-08 22:27
NewVC++2-Sep-08 22:27 
AnswerRe: Parent and chield Dialog Pin
_AnsHUMAN_ 2-Sep-08 22:34
_AnsHUMAN_ 2-Sep-08 22:34 
AnswerRe: Parent and chield Dialog Pin
toxcct2-Sep-08 22:35
toxcct2-Sep-08 22:35 
AnswerRe: Parent and chield Dialog Pin
onlyjaypatel2-Sep-08 22:36
onlyjaypatel2-Sep-08 22:36 
QuestionInstall Speech REcognization Files.... Pin
onlyjaypatel2-Sep-08 21:49
onlyjaypatel2-Sep-08 21:49 
AnswerRe: Install Speech REcognization Files.... Pin
Rane2-Sep-08 22:01
Rane2-Sep-08 22:01 
GeneralRe: Install Speech REcognization Files.... Pin
onlyjaypatel2-Sep-08 22:04
onlyjaypatel2-Sep-08 22:04 
GeneralRe: Install Speech REcognization Files.... Pin
Sauce!3-Sep-08 20:03
Sauce!3-Sep-08 20:03 
QuestionAdd two exe Pin
polopo2-Sep-08 20:28
polopo2-Sep-08 20:28 
AnswerRe: Add two exe Pin
Cedric Moonen2-Sep-08 20:30
Cedric Moonen2-Sep-08 20:30 
GeneralRe: Add two exe Pin
polopo2-Sep-08 20:35
polopo2-Sep-08 20:35 
GeneralRe: Add two exe Pin
_AnsHUMAN_ 2-Sep-08 20:41
_AnsHUMAN_ 2-Sep-08 20:41 
GeneralRe: Add two exe Pin
polopo2-Sep-08 20:51
polopo2-Sep-08 20:51 
GeneralRe: Add two exe Pin
Cedric Moonen2-Sep-08 20:54
Cedric Moonen2-Sep-08 20:54 

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.