Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Could anyone help me try this example code Pin
David Crow21-Sep-06 10:48
David Crow21-Sep-06 10:48 
AnswerRe: Could anyone help me try this example code Pin
bloodwinner21-Sep-06 11:00
bloodwinner21-Sep-06 11:00 
AnswerRe: Could anyone help me try this example code Pin
Hamid_RT21-Sep-06 18:29
Hamid_RT21-Sep-06 18:29 
QuestionWhat is wrong with this file? Pin
Lord Kixdemp21-Sep-06 10:37
Lord Kixdemp21-Sep-06 10:37 
AnswerRe: What is wrong with this file? (It's going down now) Pin
Lord Kixdemp21-Sep-06 11:09
Lord Kixdemp21-Sep-06 11:09 
QuestionVisual C++ Express Edition Pin
su_penguin21-Sep-06 9:58
su_penguin21-Sep-06 9:58 
AnswerRe: Visual C++ Express Edition Pin
Christian Graus21-Sep-06 10:43
protectorChristian Graus21-Sep-06 10:43 
QuestionAccess Violation? Pin
BlackDice21-Sep-06 9:33
BlackDice21-Sep-06 9:33 
I have a grid (Chris Maunder's MFC Grid) on a formview in one pane of a CSplitterWnd object. The formview has a function called Refresh(). Inside of Refresh(), I call a function of the grid (SetRowCount(1)). Within SetRowCount() it checks to see if 'rows' that I sent in is equal to GetRowCount() like so:



ASSERT(nRows >= 0);
   if (nRows == GetRowCount())
       return bResult;



This works fine when Refresh is called from anywhere else within the form itself. The Refresh() function is public and from another pane I get the CMainFrame* (which has a pointer to the Form that has the grid) and I call the Refresh() function and I get an Access Violation error on this line:

int  GetRowCount() const                    { return m_nRows; }


which is being called from the code above in SetRowCount(). Does anyone have any idea what the ^&*( is going on?

Thanks,



AnswerRe: Access Violation? Pin
Chris Losinger21-Sep-06 9:47
professionalChris Losinger21-Sep-06 9:47 
AnswerRe: Access Violation? Pin
Jörgen Sigvardsson21-Sep-06 9:50
Jörgen Sigvardsson21-Sep-06 9:50 
AnswerDoh!! Pin
BlackDice21-Sep-06 10:06
BlackDice21-Sep-06 10:06 
QuestionHow I can get the text from x,y coordinate? Pin
Marco225021-Sep-06 7:06
Marco225021-Sep-06 7:06 
AnswerRe: How I can get the text from x,y coordinate? Pin
Chris Losinger21-Sep-06 7:12
professionalChris Losinger21-Sep-06 7:12 
GeneralRe: How I can get the text from x,y coordinate? Pin
led mike21-Sep-06 7:53
led mike21-Sep-06 7:53 
GeneralRe: How I can get the text from x,y coordinate? Pin
Chris Losinger21-Sep-06 7:57
professionalChris Losinger21-Sep-06 7:57 
GeneralRe: How I can get the text from x,y coordinate? Pin
led mike21-Sep-06 8:02
led mike21-Sep-06 8:02 
GeneralRe: How I can get the text from x,y coordinate? Pin
Chris Losinger21-Sep-06 8:09
professionalChris Losinger21-Sep-06 8:09 
GeneralRe: How I can get the text from x,y coordinate? Pin
Stephen Hewitt21-Sep-06 15:58
Stephen Hewitt21-Sep-06 15:58 
AnswerRe: How I can get the text from x,y coordinate? Pin
led mike21-Sep-06 8:06
led mike21-Sep-06 8:06 
QuestionThreads in vc++.net 1.1 Pin
sandeep_thakur21-Sep-06 7:05
sandeep_thakur21-Sep-06 7:05 
AnswerRe: Threads in vc++.net 1.1 Pin
led mike21-Sep-06 7:54
led mike21-Sep-06 7:54 
GeneralRe: Threads in vc++.net 1.1 Pin
sandeep_thakur21-Sep-06 10:53
sandeep_thakur21-Sep-06 10:53 
Question_argv[] proglems Pin
hlmechanic21-Sep-06 6:31
hlmechanic21-Sep-06 6:31 
QuestionRe: _argv[] proglems Pin
David Crow21-Sep-06 6:49
David Crow21-Sep-06 6:49 
GeneralRe: _argv[] proglems Pin
hlmechanic21-Sep-06 6:56
hlmechanic21-Sep-06 6:56 

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.