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

C / C++ / MFC

 
GeneralRe: how to create a temporary DC using ATL without a Parent Window? Pin
Bob Stanneveld16-Jun-05 3:17
Bob Stanneveld16-Jun-05 3:17 
Questionconvert Variant to CString? Pin
ThinkingPrometheus15-Jun-05 23:08
ThinkingPrometheus15-Jun-05 23:08 
AnswerRe: convert Variant to CString? Pin
Graham Bradshaw15-Jun-05 23:18
Graham Bradshaw15-Jun-05 23:18 
AnswerRe: convert Variant to CString? Pin
Nilesh K.15-Jun-05 23:21
Nilesh K.15-Jun-05 23:21 
GeneralRe: convert Variant to CString? Pin
ThinkingPrometheus15-Jun-05 23:51
ThinkingPrometheus15-Jun-05 23:51 
AnswerRe: convert Variant to CString? Pin
Anonymous16-Jun-05 0:09
Anonymous16-Jun-05 0:09 
AnswerRe: convert Variant to CString? Pin
James R. Twine16-Jun-05 8:34
James R. Twine16-Jun-05 8:34 
GeneralSent data from Doc to dialog Pin
mafuza15-Jun-05 22:58
mafuza15-Jun-05 22:58 
Hi..

I have a problem with my VC++ code,
the problem is i don't know how to send my calculation from Doc file to dialog file. I keep getting errors.
Here are my code in Dialog class :
void ImgViewerDlg::OnUpdate(CView *pSender, LPARAM lHint, CObject *pHint)
{
CImgViewerDoc *pDoc =GetDocument();
ASSERT_VALID(pDoc);

sasa = static_cast<cstring>(pDoc->jarak);
m_Angle = sasa;
}

void ImgViewerDlg::OnApply()
{
UpdateData(TRUE);
CImgViewerDoc *pDoc = GetDocument();
ASSERT_VALID(pDoc);

sasa = m_Distance;
}

the errors are :

mgViewerDlg.obj : error LNK2001: unresolved external symbol "protected: class CImgViewerDoc * __thiscall ImgViewerDlg::GetDocument(void)" (?GetDocument@ImgViewerDlg@@IAEPAVCImgViewerDoc@@XZ)


maybe it something to do with the declaration of Doc class. please help me..I want to sent my calculation from Doc to view in textbox on a dialog.

Thank in advance.


mafuza
GeneralRe: Sent data from Doc to dialog Pin
Nilesh K.15-Jun-05 23:17
Nilesh K.15-Jun-05 23:17 
GeneralRe: Sent data from Doc to dialog Pin
mafuza21-Jun-05 17:21
mafuza21-Jun-05 17:21 
GeneralRe: Sent data from Doc to dialog Pin
Nilesh K.21-Jun-05 17:50
Nilesh K.21-Jun-05 17:50 
GeneralPicture on dialog based application Pin
Rostfrei15-Jun-05 22:48
Rostfrei15-Jun-05 22:48 
GeneralRe: Picture on dialog based application Pin
Nilesh K.15-Jun-05 23:06
Nilesh K.15-Jun-05 23:06 
GeneralRe: Picture on dialog based application Pin
Rostfrei15-Jun-05 23:32
Rostfrei15-Jun-05 23:32 
GeneralRe: Picture on dialog based application Pin
toxcct16-Jun-05 0:14
toxcct16-Jun-05 0:14 
GeneralRe: Picture on dialog based application Pin
Nilesh K.16-Jun-05 0:45
Nilesh K.16-Jun-05 0:45 
QuestionHow to set TicFreq in a dialog box? Pls Help Pin
Member 191502415-Jun-05 22:25
Member 191502415-Jun-05 22:25 
AnswerRe: How to set TicFreq in a dialog box? Pls Help Pin
RChin15-Jun-05 22:42
RChin15-Jun-05 22:42 
GeneralWhy Release version don't Run. Pin
tranglt15-Jun-05 22:02
tranglt15-Jun-05 22:02 
GeneralRe: Why Release version don't Run. Pin
One Stone15-Jun-05 22:14
One Stone15-Jun-05 22:14 
GeneralRe: Why Release version don't Run. Pin
Nilesh K.15-Jun-05 22:59
Nilesh K.15-Jun-05 22:59 
GeneralAllocConsole Pin
mcsherry15-Jun-05 21:49
mcsherry15-Jun-05 21:49 
GeneralRe: AllocConsole Pin
One Stone15-Jun-05 21:55
One Stone15-Jun-05 21:55 
GeneralRe: AllocConsole Pin
mcsherry15-Jun-05 22:12
mcsherry15-Jun-05 22:12 
GeneralCreate Trial Version of an appliation Pin
Sudhir Mangla15-Jun-05 21:33
professionalSudhir Mangla15-Jun-05 21:33 

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.