Click here to Skip to main content
15,891,033 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help With Arrays Pin
simoncoul8-Aug-07 8:45
simoncoul8-Aug-07 8:45 
GeneralRe: Help With Arrays Pin
Russell'8-Aug-07 8:46
Russell'8-Aug-07 8:46 
GeneralRe: Help With Arrays Pin
simoncoul8-Aug-07 8:55
simoncoul8-Aug-07 8:55 
AnswerRe: Help With Arrays Pin
jhwurmbach8-Aug-07 8:16
jhwurmbach8-Aug-07 8:16 
QuestionGetting a document pointer in a class other than View? Pin
cwbenson8-Aug-07 7:00
cwbenson8-Aug-07 7:00 
QuestionRe: Getting a document pointer in a class other than View? Pin
David Crow8-Aug-07 7:02
David Crow8-Aug-07 7:02 
AnswerRe: Getting a document pointer in a class other than View? Pin
jhwurmbach8-Aug-07 8:22
jhwurmbach8-Aug-07 8:22 
AnswerRe: Getting a document pointer in a class other than View? Pin
Nelek9-Aug-07 2:14
protectorNelek9-Aug-07 2:14 
I have made it in one project. Quite easy.

// In "stdafx.h"
#include "CMyDoc.h"
//
//
//in "stdafx.cpp"
CMyDoc* pMyDoc;
//
//
//in "CMyMainView.cpp"
void CMyMainView::OnInitialUpdate()
{	CScrollView::OnInitialUpdate();
	
	// More things...

	// Connecting to the MyDoc to get datas from it or to send datas to it
	CMyDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	// To have a relationship with the document in the whole programm
	extern CMyDoc* pMyDoc;
	pMyDoc = GetDocument ();
	
	// More things...

	return;
}
//
//
//in "CMySecondView.h"
#include "stdafx.h"
CMyDoc* pMyDoc_InSecondView;
//
//
//in "CMySecondView.cpp"
CMySecondView::CMySecondView()
	: CFormView(CMySecondView::IDD)
{	// Set relationship with the document
	extern CFPSDoc* pMyDoc;
	pMyDoc_InSecondView = pMyDoc;

	// More code in the constructor of the secondary view
}





Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Questionhaving problem with User defined message. Pin
alberthyc8-Aug-07 5:32
alberthyc8-Aug-07 5:32 
QuestionRe: having problem with User defined message. Pin
David Crow8-Aug-07 5:39
David Crow8-Aug-07 5:39 
AnswerRe: having problem with User defined message. Pin
alberthyc8-Aug-07 5:49
alberthyc8-Aug-07 5:49 
GeneralRe: having problem with User defined message. Pin
David Crow8-Aug-07 6:03
David Crow8-Aug-07 6:03 
GeneralRe: having problem with User defined message. Pin
alberthyc8-Aug-07 7:58
alberthyc8-Aug-07 7:58 
QuestionRe: having problem with User defined message. Pin
David Crow8-Aug-07 8:02
David Crow8-Aug-07 8:02 
AnswerRe: having problem with User defined message. Pin
alberthyc8-Aug-07 8:04
alberthyc8-Aug-07 8:04 
GeneralRe: having problem with User defined message. Pin
David Crow8-Aug-07 8:14
David Crow8-Aug-07 8:14 
GeneralRe: having problem with User defined message. Pin
alberthyc8-Aug-07 8:18
alberthyc8-Aug-07 8:18 
GeneralRe: having problem with User defined message. Pin
David Crow8-Aug-07 8:26
David Crow8-Aug-07 8:26 
GeneralRe: having problem with User defined message. Pin
alberthyc8-Aug-07 8:32
alberthyc8-Aug-07 8:32 
GeneralRe: having problem with User defined message. Pin
David Crow8-Aug-07 8:38
David Crow8-Aug-07 8:38 
GeneralRe: having problem with User defined message. Pin
JudyL_MD8-Aug-07 8:44
JudyL_MD8-Aug-07 8:44 
GeneralRe: having problem with User defined message. Pin
Mark Salsbery8-Aug-07 8:26
Mark Salsbery8-Aug-07 8:26 
GeneralRe: having problem with User defined message. Pin
alberthyc8-Aug-07 8:34
alberthyc8-Aug-07 8:34 
GeneralRe: having problem with User defined message. Pin
Mark Salsbery8-Aug-07 8:41
Mark Salsbery8-Aug-07 8:41 
GeneralRe: having problem with User defined message. Pin
alberthyc8-Aug-07 10:25
alberthyc8-Aug-07 10:25 

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.