Click here to Skip to main content
16,015,072 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralShell Question - Get Parent PIDL Pin
Marcus Spitzmiller11-Nov-04 3:12
Marcus Spitzmiller11-Nov-04 3:12 
GeneralRe: Shell Question - Get Parent PIDL Pin
Michael Dunn11-Nov-04 11:14
sitebuilderMichael Dunn11-Nov-04 11:14 
QuestionHow to draw Multiple-Documents in one view Pin
br0kera11-Nov-04 2:20
br0kera11-Nov-04 2:20 
AnswerRe: How to draw Multiple-Documents in one view Pin
bryce11-Nov-04 12:50
bryce11-Nov-04 12:50 
GeneralClosing Dialogs Pin
jj92111-Nov-04 1:23
jj92111-Nov-04 1:23 
GeneralRe: Closing Dialogs Pin
eli1502197911-Nov-04 2:15
eli1502197911-Nov-04 2:15 
GeneralRe: Closing Dialogs Pin
David Crow11-Nov-04 2:17
David Crow11-Nov-04 2:17 
GeneralAccess members from a dialog to the Viewframe Pin
Ibana11-Nov-04 0:50
Ibana11-Nov-04 0:50 
Hi there all experts!

I have an app where I want to access a string that is being set in a Dialog. I use MFC and the Doc/View structure.

I now want to be able to pass it on to the View class but I havent been able to do so.

The Dialog is an own class that I have included into my CvtkSDIApp.cpp file where all the others Doc/View/Frame are included. Look below to see
..
#include "MainFrm.h"
#include "vtkSDIDoc.h"
#include "vtkSDIView.h"
#include "StressesDlg.h"
...
I access the dialog from the mainframe

I have tried to add an getView function in my StressesDlg class to be able to get hold of the view string member that I want to use.


// CStressesDlg dialog
//forward declaration
class CvtkSDIView;


class CStressesDlg : public CDialog
{


public:
CStressesDlg(CWnd* pParent = NULL); // standard constructor
virtual ~CStressesDlg();
CVtkSDIView * GetView();
private:
CVtkSDIView * GetView;

};

// and In my implementaion file

CVtkSDIView * CStressesDlg::GetView()
{
return View;
}

// it doesnt like this at all it doesnt recongiazie my view (CVtkSDIView) as a class.
//I have tired with and without forward declaration of the CVtkSDIView class in the dialog class as you can see above.


Regards,

peter

QuestionHow to pass paramter to GUI based Application Pin
Azghar Hussain11-Nov-04 0:11
professionalAzghar Hussain11-Nov-04 0:11 
AnswerRe: How to pass paramter to GUI based Application Pin
Kapoor Vikrant11-Nov-04 0:40
Kapoor Vikrant11-Nov-04 0:40 
AnswerRe: How to pass paramter to GUI based Application Pin
David Crow11-Nov-04 2:23
David Crow11-Nov-04 2:23 
GeneralHelp plz Pin
eli1502197910-Nov-04 23:53
eli1502197910-Nov-04 23:53 
Generalcrash in ExitProcess Pin
avivhu10-Nov-04 23:18
avivhu10-Nov-04 23:18 
GeneralAdd a sub=menu and 2 sub-menu item to context menu of Windows explorer Pin
includeh1010-Nov-04 23:08
includeh1010-Nov-04 23:08 
GeneralRe: Add a sub=menu and 2 sub-menu item to context menu of Windows explorer Pin
Michael Dunn11-Nov-04 11:45
sitebuilderMichael Dunn11-Nov-04 11:45 
GeneralRe: Add a sub=menu and 2 sub-menu item to context menu of Windows explorer Pin
includeh1012-Nov-04 14:47
includeh1012-Nov-04 14:47 
GeneralRe: Add a sub=menu and 2 sub-menu item to context menu of Windows explorer Pin
Michael Dunn15-Nov-04 19:43
sitebuilderMichael Dunn15-Nov-04 19:43 
QuestionHow to we add .net C++ code to visual C++7/MFC Program? Pin
pubududilena10-Nov-04 22:58
pubududilena10-Nov-04 22:58 
Generalserial communication Pin
vc-programmer-10-Nov-04 22:53
vc-programmer-10-Nov-04 22:53 
GeneralSummer & Winter time Pin
Martijn van Kleef10-Nov-04 21:48
Martijn van Kleef10-Nov-04 21:48 
GeneralRe: Summer & Winter time Pin
Martijn van Kleef10-Nov-04 22:43
Martijn van Kleef10-Nov-04 22:43 
GeneralRe: Summer & Winter time Pin
Anonymous10-Nov-04 23:32
Anonymous10-Nov-04 23:32 
GeneralRe: Summer & Winter time Pin
jan larsen10-Nov-04 23:57
jan larsen10-Nov-04 23:57 
GeneralRe: Summer & Winter time Pin
Henry miller11-Nov-04 3:37
Henry miller11-Nov-04 3:37 
GeneralRe: Summer & Winter time Pin
jan larsen10-Nov-04 23:55
jan larsen10-Nov-04 23:55 

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.