Click here to Skip to main content
15,899,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can we read one application variable value from other application Pin
mohant$.net28-Sep-09 21:49
mohant$.net28-Sep-09 21:49 
AnswerRe: How can we read one application variable value from other application Pin
Cedric Moonen28-Sep-09 21:52
Cedric Moonen28-Sep-09 21:52 
GeneralRe: How can we read one application variable value from other application Pin
mohant$.net28-Sep-09 22:22
mohant$.net28-Sep-09 22:22 
GeneralRe: How can we read one application variable value from other application Pin
Cedric Moonen28-Sep-09 22:31
Cedric Moonen28-Sep-09 22:31 
GeneralRe: How can we read one application variable value from other application Pin
mohant$.net28-Sep-09 22:54
mohant$.net28-Sep-09 22:54 
GeneralRe: How can we read one application variable value from other application Pin
Cedric Moonen28-Sep-09 23:02
Cedric Moonen28-Sep-09 23:02 
GeneralRe: How can we read one application variable value from other application Pin
mohant$.net28-Sep-09 23:15
mohant$.net28-Sep-09 23:15 
GeneralRe: How can we read one application variable value from other application Pin
Cedric Moonen28-Sep-09 23:26
Cedric Moonen28-Sep-09 23:26 
GeneralRe: How can we read one application variable value from other application Pin
mohant$.net28-Sep-09 23:41
mohant$.net28-Sep-09 23:41 
QuestionWait cursor remain waiting after the even finished Pin
Chesnokov Yuriy28-Sep-09 21:41
professionalChesnokov Yuriy28-Sep-09 21:41 
AnswerRe: Wait cursor remain waiting after the even finished Pin
Iain Clarke, Warrior Programmer28-Sep-09 21:58
Iain Clarke, Warrior Programmer28-Sep-09 21:58 
QuestionRe: Wait cursor remain waiting after the even finished Pin
Chesnokov Yuriy28-Sep-09 22:44
professionalChesnokov Yuriy28-Sep-09 22:44 
AnswerRe: Wait cursor remain waiting after the even finished Pin
Iain Clarke, Warrior Programmer29-Sep-09 0:26
Iain Clarke, Warrior Programmer29-Sep-09 0:26 
QuestionProblem in Image save Pin
Game-point28-Sep-09 21:37
Game-point28-Sep-09 21:37 
AnswerRe: Problem in Image save [modified] Pin
CPallini28-Sep-09 22:35
mveCPallini28-Sep-09 22:35 
GeneralRe: Problem in Image save Pin
Game-point28-Sep-09 22:47
Game-point28-Sep-09 22:47 
GeneralRe: Problem in Image save Pin
CPallini28-Sep-09 23:08
mveCPallini28-Sep-09 23:08 
GeneralRe: Problem in Image save Pin
Game-point28-Sep-09 23:13
Game-point28-Sep-09 23:13 
Questionrun one system exe on the Another system Pin
trioum28-Sep-09 21:31
trioum28-Sep-09 21:31 
AnswerRe: run one system exe on the Another system Pin
Rajesh R Subramanian29-Sep-09 1:54
professionalRajesh R Subramanian29-Sep-09 1:54 
GeneralRe: run one system exe on the Another system Pin
trioum29-Sep-09 2:44
trioum29-Sep-09 2:44 
QuestionPointer to CWnd* - why does not this work? [modified] Pin
Makakuin28-Sep-09 21:23
Makakuin28-Sep-09 21:23 
Hello!

Cannot figure this out for two days already...

Example:

Header file:

<br />
<br />
#pragma once<br />
#include "afxwin.h"<br />
#include "afxcmn.h"<br />
<br />
<br />
// CUsersForm dialog<br />
<br />
class CUsersForm : public CDialog<br />
{<br />
	DECLARE_DYNAMIC(CUsersForm)<br />
<br />
public:<br />
	CUsersForm(CWnd* pParent = NULL);   // standard constructor<br />
	virtual ~CUsersForm();<br />
<br />
// Dialog Data<br />
	enum { IDD = IDD_USERS_FORM };<br />
<br />
protected:<br />
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support<br />
<br />
	DECLARE_MESSAGE_MAP()<br />
public:<br />
<br />
        afx_msg void OnBnClickedGendataButton();<br />
<br />
	CWnd* GenDataButton;<br />
	<br />
	void InitDataFields(void);<br />
	virtual BOOL OnInitDialog();<br />
};<br />
<br />
<br />



Code file:
// UsersForm.cpp : implementation file<br />
//<br />
<br />
#include "stdafx.h"<br />
#include "UsersForm.h"<br />
<br />
<br />
// CUsersForm dialog<br />
<br />
IMPLEMENT_DYNAMIC(CUsersForm, CDialog)<br />
<br />
CUsersForm::CUsersForm(CWnd* pParent /*=NULL*/)<br />
	: CDialog(CUsersForm::IDD, pParent)<br />
{<br />
<br />
}<br />
<br />
CUsersForm::~CUsersForm()<br />
{<br />
}<br />
<br />
<br />
void CUsersForm::DoDataExchange(CDataExchange* pDX)<br />
{<br />
	CDialog::DoDataExchange(pDX);<br />
}<br />
<br />
<br />
BEGIN_MESSAGE_MAP(CUsersForm, CDialog)<br />
	ON_BN_CLICKED(IDC_GENDATA_BUTTON, &CUsersForm::OnBnClickedGendataButton)<br />
END_MESSAGE_MAP()<br />
<br />
void CUsersForm::OnBnClickedGendataButton()<br />
{	<br />
	this->GenDataButton->ShowWindow(SW_HIDE);<br />
        //Why isn`t the GenDataButton valid here???<br />
}<br />
<br />
<br />
BOOL CUsersForm::OnInitDialog()<br />
{<br />
	CDialog::OnInitDialog();<br />
	this->InitDataFields();<br />
	return TRUE;  // return TRUE unless you set the focus to a control<br />
	// EXCEPTION: OCX Property Pages should return FALSE<br />
}<br />
<br />
void CUsersForm::InitDataFields(void)<br />
{<br />
	this->GenDataButton = GetDlgItem(IDC_GENDATA_BUTTON);<br />
        //Debugging shows that GenDataButton is valid here.<br />
<br />
}



The point is - this is just a sample code. I need to create an array of pointers to dialog items (CWnd type) for later use in this class. How do i accomplish this?

Please at least point me to the right documentation about this issue.. Is this something with variable types (static etc)..


Thank`s

modified on Tuesday, September 29, 2009 7:12 AM

AnswerRe: Pointer to CWnd* - why does not this work? Pin
Cedric Moonen28-Sep-09 21:50
Cedric Moonen28-Sep-09 21:50 
QuestionRe: Pointer to CWnd* - why does not this work? Pin
CPallini28-Sep-09 22:08
mveCPallini28-Sep-09 22:08 
AnswerRe: Pointer to CWnd* - why does not this work? Pin
Makakuin28-Sep-09 22:09
Makakuin28-Sep-09 22:09 

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.