Click here to Skip to main content
15,918,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat means -1.#IND000? Pin
gabriel.fischer24-Jul-05 4:52
gabriel.fischer24-Jul-05 4:52 
AnswerRe: what means -1.#IND000? Pin
Chris Losinger24-Jul-05 5:01
professionalChris Losinger24-Jul-05 5:01 
AnswerRe: what means -1.#IND000? Pin
toxcct24-Jul-05 5:30
toxcct24-Jul-05 5:30 
GeneralActive Document Server HELP! Pin
Bruce Pataki24-Jul-05 0:46
Bruce Pataki24-Jul-05 0:46 
GeneralRe: Active Document Server HELP! Pin
Gary R. Wheeler24-Jul-05 3:16
Gary R. Wheeler24-Jul-05 3:16 
GeneralRe: Active Document Server HELP! Pin
Bruce Pataki25-Jul-05 4:47
Bruce Pataki25-Jul-05 4:47 
GeneralRe: Active Document Server HELP! Pin
Gary R. Wheeler25-Jul-05 15:41
Gary R. Wheeler25-Jul-05 15:41 
GeneralRe: Active Document Server HELP! Pin
Bruce Pataki26-Jul-05 7:35
Bruce Pataki26-Jul-05 7:35 
Thanks Gary for the tips. Your insight into MFC is commendable.

I tried using your solution however, it does not solve my problem and gives debug assertion failed in winocc.cpp. After exploring the code, in debug mode I realize that Windows handle shows "unused=???"

The following code would summarize the function hierarchy:

void CTest::OnBnClickedButton1()
{
dm dm1;
dm1.Add(t1,c1,ts1,cv1);
}
void dm::Add(LPCTSTR tn,LPCTSTR cn,LPCTSTR ts,LPCTSTR cv)
{
CTestView ctv;
ctv.addData(t1,c1,ts1,cv1);
}

void CTestView::AddData(LPCTSTR tn,LPCTSTR cn,LPCTSTR ts,LPCTSTR cv)
{
int i=0,j=0;
int flag = 0;

j=rowcount-1;
//pointer to the listview control

CListCtrl* pList = (CListCtrl*) GetDlgItem(IDC_LIST1); // THIS ONE DOES NOT WORK
pList->InsertItem(0,ts);
}

Let me try visualizing this. Function1 in separate form1 calls button click which in turn calls function2 and function3 from within function2 is called to display the data in listview in separate form2. What I believe I don't get is the windows' handle being held with function1 call and not released to the function3 (listview control window calling function).

Any clues to fix this?
GeneralRe: Active Document Server HELP! Pin
Gary R. Wheeler27-Jul-05 12:26
Gary R. Wheeler27-Jul-05 12:26 
Generalinterrupt handling Pin
rottencheese24-Jul-05 0:38
rottencheese24-Jul-05 0:38 
GeneralRe: interrupt handling Pin
Alexander M.,24-Jul-05 3:14
Alexander M.,24-Jul-05 3:14 
QuestionHow to expand CRectTracker's handles size for easy use with touch panel? Pin
yyqqhy200024-Jul-05 0:23
yyqqhy200024-Jul-05 0:23 
AnswerRe: How to expand CRectTracker's handles size for easy use with touch panel? Pin
Gary R. Wheeler24-Jul-05 3:20
Gary R. Wheeler24-Jul-05 3:20 
GeneralRe: How to expand CRectTracker's handles size for easy use with touch panel? Pin
Anonymous24-Jul-05 4:18
Anonymous24-Jul-05 4:18 
QuestionPop up "view wireless Network dialog" by Code? Pin
joycenter24-Jul-05 0:01
joycenter24-Jul-05 0:01 
Generalthe problem wtih AfxOleInit and OleUninitialize Pin
I am ke xu23-Jul-05 23:59
I am ke xu23-Jul-05 23:59 
Generalacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:26
Member 213961923-Jul-05 21:26 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Alexander M.,24-Jul-05 3:16
Alexander M.,24-Jul-05 3:16 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Member 213961924-Jul-05 7:22
Member 213961924-Jul-05 7:22 
Generalchanu1982@rediffmail.comacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:25
Member 213961923-Jul-05 21:25 
Generalhiding folders and files Pin
Member 213961923-Jul-05 21:20
Member 213961923-Jul-05 21:20 
GeneralRe: hiding folders and files Pin
Alexander M.,24-Jul-05 3:18
Alexander M.,24-Jul-05 3:18 
GeneralRe: hiding folders and files Pin
Member 213961924-Jul-05 7:53
Member 213961924-Jul-05 7:53 
QuestionIs the application running? Pin
picasso223-Jul-05 19:27
picasso223-Jul-05 19:27 
AnswerRe: Is the application running? Pin
Alexander M.,24-Jul-05 3:20
Alexander M.,24-Jul-05 3:20 

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.