Click here to Skip to main content
15,917,565 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Watch Window Formatting Pin
Martin Ziacek24-May-02 4:16
Martin Ziacek24-May-02 4:16 
GeneralRe: Watch Window Formatting Pin
Mark Donkers24-May-02 4:23
Mark Donkers24-May-02 4:23 
GeneralAccess violation in clistctrl Pin
SnapRick24-May-02 2:51
SnapRick24-May-02 2:51 
GeneralRe: Access violation in clistctrl Pin
Joaquín M López Muñoz24-May-02 4:04
Joaquín M López Muñoz24-May-02 4:04 
GeneralRe: Access violation in clistctrl Pin
SnapRick24-May-02 4:27
SnapRick24-May-02 4:27 
GeneralUsing external Members Pin
laphijia24-May-02 2:43
laphijia24-May-02 2:43 
GeneralRe: Using external Members Pin
Alexandru Savescu24-May-02 3:35
Alexandru Savescu24-May-02 3:35 
GeneralRe: Using external Members Pin
laphijia24-May-02 3:59
laphijia24-May-02 3:59 
void CFirstForm::OnBnClickedBtnSelect()
{
// TODO: Add your control notification handler code here

CDataForm *pData;
pData = new CDataForm;
pData->GetLocalData(50);
delete pData;

}

Even if I don't delete the pointer it's just the same.
The error happens when I click the SelectButton in the FirstForm.
When I click the Select Button, it should modify the text in the edit controls in the SecondForm.

How can I achieve this?

I tried also to add a function that in the CSecondForm class, that modifies the controls, and call it, passing the parameters in the void CFirstForm::OnBnClickedBtnSelect(), but I receive the error non-static function callin a static function or viceversa.
Confused | :confused: Confused | :confused:

"Nelle cose del mondo non e' il sapere ma il volere che puo'."
GeneralRe: Using external Members Pin
Joaquín M López Muñoz24-May-02 3:58
Joaquín M López Muñoz24-May-02 3:58 
GeneralRe: Using external Members Pin
laphijia24-May-02 6:39
laphijia24-May-02 6:39 
GeneralHolding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 2:43
Alexandru Savescu24-May-02 2:43 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Chris Losinger24-May-02 3:03
professionalChris Losinger24-May-02 3:03 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Alexandru Savescu24-May-02 3:13
Alexandru Savescu24-May-02 3:13 
GeneralI'm doing similar but why won't work Pin
24-May-02 3:45
suss24-May-02 3:45 
GeneralRe: I'm doing similar but why won't work Pin
Joaquín M López Muñoz24-May-02 3:54
Joaquín M López Muñoz24-May-02 3:54 
GeneralRe: I'm doing similar but why won't work Pin
24-May-02 4:39
suss24-May-02 4:39 
GeneralRe: Holding pointers to functions as values in a std::map Pin
Vivek Rajan24-May-02 7:54
Vivek Rajan24-May-02 7:54 
GeneralChange scrollbar colour Pin
Nnamdi Onyeyiri24-May-02 1:23
Nnamdi Onyeyiri24-May-02 1:23 
QuestionMath and 3d books ? Pin
Joao Vaz24-May-02 1:04
Joao Vaz24-May-02 1:04 
AnswerRe: Math and 3d books ? Pin
jan larsen24-May-02 2:56
jan larsen24-May-02 2:56 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:21
Joao Vaz24-May-02 3:21 
AnswerRe: Math and 3d books ? Pin
Chris Losinger24-May-02 3:06
professionalChris Losinger24-May-02 3:06 
GeneralRe: Math and 3d books ? Pin
Joao Vaz24-May-02 3:24
Joao Vaz24-May-02 3:24 
QuestionCalculation? Pin
Zizilamoroso23-May-02 23:54
Zizilamoroso23-May-02 23:54 
AnswerRe: Calculation? Pin
markkuk24-May-02 0:07
markkuk24-May-02 0:07 

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.