Click here to Skip to main content
15,886,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to detect a mouse event of other applications? Pin
Rajesh R Subramanian20-Dec-06 0:02
professionalRajesh R Subramanian20-Dec-06 0:02 
QuestionPadding error for cryptograhpy with hmacsha256 verification [modified] Pin
Malcolm Chu19-Dec-06 22:54
Malcolm Chu19-Dec-06 22:54 
Question2-dimensional array of strings Pin
namy119-Dec-06 22:52
namy119-Dec-06 22:52 
AnswerRe: 2-dimensional array of strings Pin
sunit519-Dec-06 23:13
sunit519-Dec-06 23:13 
AnswerRe: 2-dimensional array of strings Pin
toxcct19-Dec-06 23:18
toxcct19-Dec-06 23:18 
AnswerRe: 2-dimensional array of strings Pin
sunit520-Dec-06 0:51
sunit520-Dec-06 0:51 
AnswerRe: 2-dimensional array of strings Pin
Sam Hobbs20-Dec-06 18:05
Sam Hobbs20-Dec-06 18:05 
Questionaccess violation Pin
neha.agarwal2719-Dec-06 22:42
neha.agarwal2719-Dec-06 22:42 
i m making a sdi application in that application there are splitter windows .
In one of the splitter window there is a list ctrl.That list ctrl is made by making a object of a class which is in turn derived frm CListCtrl class and then calling Create function...
/*******************/
CColoredListCtrl List_Object_Ctrl;

List_Object_Ctrl.Create(LVS_REPORT | LVS_SHOWSELALWAYS | LBS_NOTIFY ,
CRect(300,300,800,600), this, 1);
List_Object_Ctrl.InsertColumn(0,"Name",150,150);
/**************************************/

Now what i m trying to do is i am opening a dialog box using my toolbar ......

void CSplitterWndTestApp::OnNewTask()
{
CNewTaskDialog obj_NewTask;
if(obj_NewTask.DoModal() == IDOK)
{
ptr->addin();
}
}

when onok is clicked i want that some items s'ld go and add up in list ctrl
for which i m calling a function addin which is made in the class derived from list ctrl....(CColoredListCtrl )
In addin function these two lines are written
void CColoredListCtrl::addin()
{
InsertItem(0,"test",NULL);
SetItemText(0,1,"str");
}
Now my problem is when the pointer passes its ctrl in that function.
and when insert item is called it gives an error of access violation .....

i have made object ptr extern
n allocated it memory in its own class CColouredListCtrl like this
int CColoredListCtrl::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CListCtrl::OnCreate(lpCreateStruct) == -1)
return -1;
ptr=this;
return 0;
}

can anybody help me with this......

AnswerRe: access violation Pin
Naveen20-Dec-06 0:32
Naveen20-Dec-06 0:32 
QuestionMemory Leak in SQLExecuteDirect() Pin
apoorva_raje19-Dec-06 22:37
apoorva_raje19-Dec-06 22:37 
AnswerRe: Memory Leak in SQLExecuteDirect() Pin
James R. Twine20-Dec-06 4:04
James R. Twine20-Dec-06 4:04 
GeneralRe: Memory Leak in SQLExecuteDirect() Pin
apoorva_raje20-Dec-06 22:52
apoorva_raje20-Dec-06 22:52 
QuestionImage segmentation Pin
Rishikant_Prince19-Dec-06 22:35
Rishikant_Prince19-Dec-06 22:35 
AnswerRe: Image segmentation Pin
567890123419-Dec-06 22:45
567890123419-Dec-06 22:45 
QuestionApplication Error Pin
Programm3r19-Dec-06 22:32
Programm3r19-Dec-06 22:32 
AnswerRe: Application Error Pin
Hamid_RT20-Dec-06 0:01
Hamid_RT20-Dec-06 0:01 
QuestionRe: Application Error [modified] Pin
Programm3r20-Dec-06 0:33
Programm3r20-Dec-06 0:33 
AnswerRe: Application Error Pin
Mila02520-Dec-06 1:47
Mila02520-Dec-06 1:47 
QuestionRe: Application Error [modified] Pin
Programm3r20-Dec-06 3:28
Programm3r20-Dec-06 3:28 
QuestionDisplay ActiveX Control in Shared Dll Pin
QuickDeveloper19-Dec-06 22:31
QuickDeveloper19-Dec-06 22:31 
QuestionHow can i create a Global Desktop Pin
SelvaKr19-Dec-06 22:29
SelvaKr19-Dec-06 22:29 
QuestionCListBox with lines? Pin
bosfan19-Dec-06 22:28
bosfan19-Dec-06 22:28 
AnswerRe: CListBox with lines? Pin
Monty219-Dec-06 22:41
Monty219-Dec-06 22:41 
GeneralRe: CListBox with lines? Pin
bosfan20-Dec-06 0:46
bosfan20-Dec-06 0:46 
AnswerRe: CListBox with lines? Pin
CPallini20-Dec-06 2:12
mveCPallini20-Dec-06 2: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.