Click here to Skip to main content
15,906,626 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
Snorri Kristjansson2-Dec-11 0:01
professionalSnorri Kristjansson2-Dec-11 0:01 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
jkirkerx2-Dec-11 6:32
professionaljkirkerx2-Dec-11 6:32 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
JackDingler9-Dec-11 10:23
JackDingler9-Dec-11 10:23 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
jkirkerx9-Dec-11 11:00
professionaljkirkerx9-Dec-11 11:00 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
JackDingler9-Dec-11 13:08
JackDingler9-Dec-11 13:08 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
jkirkerx9-Dec-11 15:02
professionaljkirkerx9-Dec-11 15:02 
GeneralRe: c++ SQL Server Rowset Column Buffer Pin
jkirkerx9-Dec-11 16:48
professionaljkirkerx9-Dec-11 16:48 
QuestionUsing a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 6:54
AndrewG123130-Nov-11 6:54 
I have a program that allows me to do some processing from menu resource in my program and I would like to access it from a dialog box. Currently, the member function autoplane() is defined in my WinSTMView class and I would like to member function to be accessed in ScanAcq Class. I tried to accomplish this by doing the following:
void CDlg_ScanAcq::OnBnClickedScanProcess()
{
	// TODO: Add your control notification handler code here
	OnPlaceData();
        //This part doesn't work
	CWinSTMView *pView;
	pView->OnImageAutoPlane();
}

Any suggestions on what I am doing wrong? I have tried to load the all the correct header files.

[modified]
This is repeated in the comments, but it will also help to give more information about what I am trying to solve...so I will paste it here as well.

The comment, "This part doesn't work", was meant to direct the attention away from the first call to OnPlaceData() to the lines of code that were causing problems. All I want to happen is for the Autoplane() member that is defined in the view part of the MDI (I think there are three parts in MDI, the view, the doc, and the app) to be successfully called from a button I placed on a different dialog box. To do this I tried to create an pointer of the view class type and call the member. It compiles fine, but in runtime the program crashes.
[/modified]

modified 30-Nov-11 14:24pm.

AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Jonathan Davies30-Nov-11 7:06
Jonathan Davies30-Nov-11 7:06 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 7:30
professionalAlbert Holguin30-Nov-11 7:30 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 7:58
AndrewG123130-Nov-11 7:58 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:24
professionalAlbert Holguin30-Nov-11 8:24 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 8:27
AndrewG123130-Nov-11 8:27 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:28
professionalAlbert Holguin30-Nov-11 8:28 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Albert Holguin30-Nov-11 8:27
professionalAlbert Holguin30-Nov-11 8:27 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Richard MacCutchan30-Nov-11 7:24
mveRichard MacCutchan30-Nov-11 7:24 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 7:54
AndrewG123130-Nov-11 7:54 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
Richard MacCutchan30-Nov-11 8:40
mveRichard MacCutchan30-Nov-11 8:40 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
Chuck O'Toole30-Nov-11 8:27
Chuck O'Toole30-Nov-11 8:27 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 8:53
AndrewG123130-Nov-11 8:53 
QuestionRe: Using a member from the view class of an mfc program in a dialog box Pin
David Crow30-Nov-11 8:47
David Crow30-Nov-11 8:47 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG123130-Nov-11 9:00
AndrewG123130-Nov-11 9:00 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
David Crow30-Nov-11 9:35
David Crow30-Nov-11 9:35 
AnswerRe: Using a member from the view class of an mfc program in a dialog box Pin
AndrewG12311-Dec-11 9:25
AndrewG12311-Dec-11 9:25 
GeneralRe: Using a member from the view class of an mfc program in a dialog box Pin
JackDingler5-Dec-11 9:38
JackDingler5-Dec-11 9:38 

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.